First off if you dont tow trailers start on the double filiment bulbs check for burn out
Second if you tow trailers or removed spare tire from under bed you probably loosen a ground wire on the wire harness under bed
Simple to fix once found
Tools need test light with ground gator clip
Rock for pressing brake pedal down or second helper on brakes
And a battery jumper
More than likely a wire pulled out harness on its back end
I had same problem it happened to be a pulled ground
150 miles from no where midnight cop pulls me over after he left got under truck moved some wires it came on then went off
It just needed to be pushed in little further in harness
Used a nail and glow of phonepushed in drove home
This wire problem for me was cause i bought new fuel pump removed bed forgot a ground wire it pulled out