The headlamp wiring is protected by a circuit breaker in the light switch. An electrical overload will cause the lights to go on and off, or in some cases to remain off. If this happens, have your headlamp wiring checked right away.