Most electronic fuel systems are controlled by the vehicle ignition system and then by the engines computer. So 9 times out of ten when a non starting vehicle acts like it's out of gas, it's not the fuel delivery system but something else that is cutting power to fuel pump. Believe me 90% percent of the money made at parts stores is for fuel delivery parts that are not bad or failing. Turn the key on, but don't start the vehicle. Watch all the dash lights do their thing. More than likely one of them is trying to tell you something. Listen for the fuel pump to come on even if you have to get down by the gas tank or use a second person. Does the vehicle act like it's going to start then cut out? This is an indicator of a FOB Key or pass code failing to the vehicles internal security system. Even if you don't have an alarm on the vehicle, most late models are built with a loop back that sends a signal from the key to the computer to tell the system it's the right key turning on the vehicle. Sometimes they go bad and you have to relearn the pass code. Google it if you have to.
The reason the engine is not starting could be because of lack of fuel or a low fuel pressure. There are other probable causes such as a fault with the grid heater. It would be best to take the truck to a mechanic so that it can be examined and fixed.
Research & see if your truck has a fuel pump shut off breaker. Most gas vehicles have this Safety feature built in. Usually it will be on the passenger side behind the glovebox or near the foot panel. Good luck.