It would also help if you can provide some info on your truck as to make year model and mileage.
I'm assuming the engine cranks but does not start. Listen carefully or have someone listen and see if you can hear the electric fuel pump running when key is on or engine cranked. There should be a hum sound by the gas tank or gas filler pipe for a few seconds after the key is turned. The pump should run and cycle for a few seconds then stop. If you hear a hum most likely the fuel pump is working. If not working (no sound) check for any blown fuses. There is also a fuel pump relay. If the fuel pump is working then you will have to check to see if you lost ignition spark.

