If you are sure it is electrical then.... CDI or Magnito? Kill switch or wiring? There are several possible faults. The easiest way is to get a troubleshooting flow chart and wiring diagram for your bike so that you know what all the wires go and what each of the parts is called. Then use the flowchart to trace the problem. You will also find a multimeter handy.