Mine did that same thing a whike ago, and turned out to be the shift linkage/ cable broke ( on of the mounts, so it didn't work).
When I parked the truck, shift lever went to park, but the cable broke as it went into reverse. The tranny was in reverse which kept it from starting.
Just a thought.