Just quit

Here is the regulator and ballast resister .Ignition switch might also be a choice
will also check ground on coil and battery also starter , Fuel was checked by pumping linkage and spray in carb was good. It just seemed to be electrical . Thanks for all the reply's
I would
View attachment 1715399586

In your picture the orange box is the 'electronic control box' [ECU]. It is basically an on/off switch. I would disconnect the neg. battery terminal and remove the ECU from the fender. Then clean the fender and backside of ECU down to bare metal on one of the bolts, grease it, remount it, and test it. Or replace the ECU.