Truck cranks up, but it won't start. on 2002 Chevrolet Silverado 1500

While driving, the engine just died out. Tried restarting and it cranks up, but it won't start.

Asked by for the 2002 Chevrolet Silverado 1500
Sounds like the fuel pump failed, have a mechanic hook up a computer scanner and see what codes are present. The code will tell you what failed.
2 more answers
A defective fuel pump will rarely set any trouble codes but is a likely culprit for crank-no start conditions. You'll need to check fuel pressure. Try to listen for the fuel pump when you first key on (it will automatically shut off after a couple seconds). Also look for any blown fuses.
Had this happen two times. It was a hairline crack in the distributer both times, change it!