Barrowed this from http://www.dfn.com/be nkaren/elecfaq.html
Q#45:I suddenly have NO lights, what’s wrong?
A#45:Check the bulbs first, they may have just gone out from old age or vibration. Check the stator lighting coil resistance next (see Q#31), then test the wiring harness connectors and continuity (see Q#36) making sure to check the ground, and finally take apart the handlebar light switch and check out the switch itself. The light switch may have gotten water (unlikely) or filth inside, or the contacts have simply worn out.