Be very methodical about your troubleshooting; eliminate one thing at a time and keep a list, so you can let us know what you've already done.
These things are computer-controlled, so you need a steady diet of smooth, uninterrupted electricity.
Start with battery connections, as Leo said... pull off each terminal connection, clean thoroughly, then put back together. Pay special attention to the dual-cable connection on the passenger side positive... there will be a copper 'doughnut' in between the two cables, and that guy needs to be taken out, cleaned, and put back together carefully.
Test your batteries (while unhooked) to make sure they're OK. A dead cell can give you symptoms like you describe... oxides from repeated charge/discharge settle to the bottom and can short out the plates.
Check cables for bulges, damage, or 'crunchy' spots when you flex them... corrosion, even inside the insulation, can really cause you grief.
Check all of your fuses, under the hood and in the cab. Pull them one at a time, shine up the legs with some steel wool, make sure they're OK, put them back. If you can get some NalOx to put into the clips, do so... the clips are usually copper and the fuse legs are aluminum, so they oxidize and lost contact fairly easily.
Check and clean all of your engine grounds, as indicated. Pull apart every connector you find, check for corrosion, put back together.