There is likely a problem with either the headlight switch or the associated circuit.
there are 2 relays in a black box underneath the dash on the right hand side pop the cover off it will reveal your 2 relays. one for dome lights other for running and dash lights
If fuse is ok, could be a bad headlight switch
If you dash lights are not working check that your parking/brake lights are working also check fuses for cig lighter and interior lights that may help get the dash light working again.
daytime running lights
Check the fuses.
If parking lights and dash lights are not working and fuse blows out, there might be a problem with battery corrosion. Check the components specific to the circuits of the affected lights. It might be loose.
CHECK THE FUSE PANEL DASH & TAIL LIGHTS WORK FROM SAME FUSE
What year is the vehicle? Did you check the fuse?
I had this problem with a '92 Saturn and it was because i blew a fuse. I am not sure which fuse it was as it was about 6 yrs ago, but you should check your fuses and see if any are blown. I know it sounds rediculous that the tail running lights and the dash lights are connected by the same fuse. Sorry I cannot give you a more detailed answer
in dash lights
sol
check the fuse for dash lights