Okay, let's run the codes to see if any are stored, this guide can help:
https://www.2carpros.com/articles/checking-a-service-engine-soon-or-check-engine-light-on-or-flashing
Also, when the engine is cranking but not starting let's use some starting fluid to see if that makes a difference. Can you please upload a short video of the engine cranking when it won't start so I can see? Also, this truck has an oil pump, pressure switch so if the engine loses oil pressure it will stop the fuel pump from running, make sure the engine oil is clean and full. Here is the location of the oil pressure sensor so you can check it out.
One more thing I can think of is the MAF sensor, I would unplug it when the engine is not starting to see if it starts and if so, the sensor is bad. Check out the images (below). Please let us know what happens.
Images (Click to make bigger)
Monday, July 1st, 2024 AT 10:38 AM