Fuel Pump maybe??
I have a 2001 Ford F-250 Super Duty, 5.4. that will
crank, run, but drives a few feet and shuts off like
its out of gas, and there be plenty of fuel in the
tank. While still running you can mash the gas
petal all the way to the floor, no acceleration before
it cuts off.
Changed the fuel filter and run injector cleaner
through it, still same problem.
Could be a bad fuel pump or the idle control valve.