I'd pop the switch out and check it for continuity. Any chance one of the bulbs burnt out without your noticing, then when the second burnt out it was obvious? Check your fuses, clean the ones to the headlights, they get corrosion on them all the time.