Not Starting on 2006 Jeep Grand Cherokee

Jeep would not start after numerous attempts.
I finally took the car out of park and then back in park, it started. So far this
has not happened again.

2 answers
Your neutral safety switch is going out. If it does this again, try starting it in neutral. If this makes a difference, then the switch needs to be replaced.
I had the same problem on my car, took it to the dealer and they replaced the neutral safety switch but after a few days it was doing it again. I found a good transmission shop on http://www.autorepairyellowpages.com the name of the shop is Winchester Transmission in Campbell, CA. I spoke with Patrick and he was able to adjust the linkage or cable or something under the console to fix the problem. It's been over a month now and no recurring problems.