Before this incident it would randomly turn off and take several tries to turn on again. After a few days it would cranak up with no problem.
my 1994 jeep wrangler does not start, it cranks but does not start, no sparks. on 1994 Jeep Wrangler
Another possible item would be the crank sensor. As goodguy said , have them tested first before replacing. Both of them can be 'heat sensitive', -gets hot ... stalls-cools down... starts up.
sounds like you have a bad ignition module have it scan tested for codes