In my case when my truck could not start but ignition was ok,the fuel pump of not working.A simple way to find out if its working apart from trying to hear the pump noise 1 or 2 secs after you turn the ignition key,is to use a polymeter.Put the two contacts of the polymeter (black-red) to the corresponding two contacts of the fuel pump (dont know how difficult this is,I have'nt raised my fuel tank) and see if the electrical circuit is o.k.
Or just use a portable charger/battery and put the 2 outputs(red -black) to the ones the pump has.If  its ok,you should hear it working.
But again ,I think that if it is the fuel pump,then how the truck can operate properly after the engine starts ....
An other time I had this problem ,(and the sumptom was the same,that is when the engine started,it worked o.k) ,the solution was to change a relay (dont know if I spell it right) ,a fuse anyway (looks like a square of glass about an 1/2 inch
each side.This fuse is visible without opening something
and its close to the front left (passenger side) head light in the engine room,somewhere close to the radiator's upper left side.
These are some hints o.k ? I m not a mechanic,I just remember what my mechanic was talking about then....