Do you mean that it is cranking and not starting, or not cranking at all?
If it is not cranking at all, I would suspect the neutral safety switch, or a problem with how your shifter is detenting.
If you can pull it out of park and slam it back in, and it will crank, then the switch may not be the problem, the shifter may just not be detenting into park properly. If this happens again, I would try starting it off the solenoid. This can be done either with a couple of screw drivers and jumping across the points on the back of the solenoid, or with a little $8.00 remote starter that you hook up to the cable studs on the back of the solenoid. This will bypass the neutral saftey switch, so make sure it isn't in gear. This would tell you that yes, the problem is in the switch or in the gear shift detent.
Incidentally, my local parts guy told me that in 18 years of working as a Jeep partsman, and 15 for the other guy behind the desk, they've never sold a neutral safety switch for a Cherokee.
Best of luck,
Geoff