Did you Replace the stator with an oem or ?
Check basic things like wiring, coil, ignition switch, on off switch. These parts sometimes are corroded internally and can cause intermittent problems.
Also while tinkering with it did you re connect any plugs or anything un plugged ?
Sent from my iPhone using Tapatalk