There is a relay (Circuit Opening Relay) that turns the fuel pump on for a second or two when you turn the key to the "ON" position so that the fuel rail is pressurized. If this relay is bad or not doing it's job, then you won't have fuel pressure to fire the injectors with when starting the engine.
After the truck has been sitting a while, climb in the truck and close the door so it is as quiet as it can be......radio off and disconnect any buzzer that comes on when the key is turned on, if any. Then, turn the key to the "ON" position and if the Circuit Opening Relay is working, you should faintly hear the fuel pump turn on and run for 2-3 seconds and then go quiet or off. If your not hearing this, then I would pull the relay and test it....it is located behind the drivers side kick panel.......
Here is a test procedure out of the factory repair manual.