Welcome to the Forum from NH.
Lots of knowledgeable folks here who freely share their knowledge, experiences, and perspectives. Knowledge is power.
I hope that you will become a participating member in the Forum's discussions.
Pics of the truck, please.
You are already receiving great advice from the knowledgeable folks on this Forum. Check the ground wires going from the fog light bulb socket to ground, somewhere close by on the frame. These trucks are very sensitive to corroded grounds. If you have a multimeter, check for continuity between the ground contact in the fog light bulb socket and the truck's frame.