There may not be a kill switch, but there was. That wire is likely lurking somewhere. If it shorts to the frame, then no spark.
The first thing to do is to make sure the wiring on the bike is good. That doesn't cost anything. check ever part of every wire involved in the ignition. I've seen broken wires where the insulation was still good. There was so much flex and vibration that the wire was broken inside the insulation. After all the wiring is known to be good, in my experience the order of failure is stator/pickup coils, ignition coil, and finally the CDI.
In most bikes the CDI is a very reliable and low failure part. Some bike are notorious to fry the CDI like the XT550 and XR650L.
Measuring the ohms of the stator, pickup or ignition coils doesn't mean that they are good. I've seen several stators that measured OK as far as the ohm reading, but were still bad.
I see a lot of shavings on that pickup coil. Those shavings kind of short out teh magnetic circuit and reduce the magnitude of the pulse. Get all of those out of there even if it means removing it to clean it.