Get the Yamaha service manual for your bike, read the ignition troubleshooting section and verify each and every component, connection and ground in the system. Don't buy any parts until you've tested and verified the function of all the components.

"another beautiful theory beaten to death by a gang of ruthless facts..."