It sounds like it may be a crankshaft position sensor or a cam position sensor or connections to the sensor. Was it cold out when you first tried to start the truck? Did the temperature get a lot warmer later in the day when it started?
Yes Fudimo, I tried starting it early in the AM with no success. It then started in the PM.
Likely suspects.