My money says you have an electrical gremlin. An intermittent break in continuity. It could be a connector or spark wire etc that may have vibrated back to a better connection or perhaps was improved by poking around and jiggling the faulty wiring. It is likely to reoccur.
If it doesn't reoccur then it's probably a bit of bad fuel that has flushed itself through or maybe water in the tank that has flushed through. That could reoccur of course but if it does reoccur: focus on the electrical. Get familiar with all your connectors, contact cleaner & dielectric grease. @
Ghostt has a good, recent article on the subject. I'm sure he'll point you to it.
Remember; it WILL reoccur at the most inconvenient time so be prepared!
__________________________________________________
The Smart Money: #1 - ATGATT, #2 - Training (machine skills and survival skills), #3 - The bike; whatever floats yer boat with the money you have left over