No not a code question, have an OBD2 scanner. It's an intermittent NO juice to the starter solenoid/starter question! Did they have any problems with any anti theft device that could be keeping it from getting power? It happened about 2 months ago and it sat over night and I got up next morning working on it and all sudden it just cranked right up....
Sounds like a Ford problem.
I had this problem with an O2 Ford Exploder (explorer). 1st thing i checked was the battery at Autozone. Their tester said it was fine but I ended up putting a different battery in the vehicle and the problem disappeared. It seems the problem was that even though the battery was good it was not producing the CCA it should.
I also had a similar problem on a 07 Ford F150 and the culprit was a cracked battery terminal. I really couldn't even see it till i disconnect the battery.
You can always check is a starter has juice with a screw driver hot wire if you have too. Ive done it before in aggravation but i wouldn't recommend it.
I would check these simple things before spending your hard earned money.
I had the same issues with my company truck '11 chevy 2500. Also turned out to be the battery going dead. Never had one do that before, where it flat out wont crank or do anything and then just all of a sudden start.
Without being able to look at the truck it's hard to say. It could be anything from a loose or weak ground to a faulty computer. Since your in Baton Rouge I think Vince is your best bet.
Have run into this problem many times over the years on just about all brands of vehicles. Remove and
clean all connections, make sure connections are clean metal to clean metal. Check all engine grounds
not just battery cables. Check battery cables from end to end for swollen spots in the cable (interior
corrision ) as well as splits or naked spots and corrision in cable insulation. As insurance I always ran
an extra ground from the frame to the engine block or preferably to a starter mounting bolt made of
battery cable size wire. If this is your problem this should fix it---Good Luck!!!
Something no one else has mentioned is "heat soak". Sometimes starters are positioned too close to the exhaust and just get too hot to start, but then are OK when the starter cools down. I've seen a couple of vehicles that had starters changed, solenoids changed, ignition switches changed, new battery cables, and new batteries, but only fixed when the starters were wrapped with insulating materials (either a foil blanket, or roll-wrap). Neither vehicles had any problems after the starters were protected from heat. I think you can get starter insulating wrap from Autozone, relatively inexpensively. http://www.autozone.com/exhaust/exhaust-heat-shield?filterByKeyWord=exhaust+wrap&fromString=search. I've seen either the starter or the exhaust pipes wrapped, and one friend wrapped both.