Bad bulbs, bad switch, bad circuit breaker, bad wiring, bad ground.
Check the fuse for the headlights. It is probably open.
Check the fuse.
my headlights work but my taillights and dash light dont work whats wrong
The headlights could have bad bulbs or a bad fuse; the two sets of lights are on different circuits.
check the fuses - there is no fuse for the headlights.
If the headlights on the 2004 GMC Envoy are not working, there could be a loose connection somewhere. If all of the other lights are working, it is most likely not a fuse that has blown. Double check the wiring to see if there is a loose connection.
The headlights work on a totally different relay than the parking and fog lights. The headlight relay or headlight fuse is usually blown when only the parking and fog lights work.
Fuse, wiring, bulbs
If your headlights work, but your tail lights don't, your bulbs could be blown. It is possible that you have a shortage in your car.
Check the bulbs and check the fuses.
They are either the wrong bulbs or one of the filaments is burned out. The bulbs should have two filaments. One is illuminated when the lights are on. The other is brighter when the brakes are used.
It could be a short in the wiring, or a fuse or the headlights themselves might be bad. I hope this helps