Most all electrical problems are on the ground side!
After checking the cables that cranetruck talked about,
Check all grounds, Battery, Frame, Frame to engine, etc.
Dont just look at them, Pull them, Clean them, and reinstall with new hardware if needed.
Good Luck.