I'd be suspicious of the headlight switch, but you'll need to check it out.
Check the fuses; if fuses good, then check the wiring for damage
Your wire connection to your headlights from your fuse box might be loose or broken somewhere. Try running a jumper wire from your headlights to the fuse box. If the headlight work when you try this, then your wiring has an open circuit and needs to be replaced, or fixed.
I would check the fuses. if all fuses look okay then check the wiring. if the wiring looks fine i would recommend taking it to a shop.
Check bulbs, fuses, and check for wiring problems
Flickering headlights on a 2005 Silverado may be caused by faulty relays or electrical wiring. The fuses and lights may also be going out.
First check the bulbs then check the fuses.
Check to see that all other lights work on the neon. Check for a headlight fuses, relay, and a bad switch. Check for any loose wiring that can cause power loss to the headlight.
If the headlights flash on and off, there may be a problem with the bulbs or fuses. There may also be a problem with the battery connections or wiring.
You need to check the wiring around headlights, fuses and the bulbs.
Check the switch.
Bad headlight switch.
Start with checking the fuses.