Motorcycle Questions? Ask a Mechanic.
Sounds like it might be the bank angle sensor.
It is under the seat and frame rail on the right side.
It has green and yellow wires and is held in a notch
by an allen bolt and nut. Try a jumper on the wires
and see if you get any spark.
Make sure the plug cap is okay too and battery
cables are tight etc.