voltage regulator problem

Judging from the rust and corrosion, I would not bet on ANY of that stuff working correctly. The connector and pins may be making very poor contact. Both the regulator and ECU (ignition) must be grounded very well