1997 Jeep Laredo 6 cyl Two Wheel Drive Automatic 156K miles
I've read zillions of these forums where Jeeps are dying and stalling at random. Do not replace anything! Its the connectors on your PCM (located on the firewall behind the coolant resivior). Here is a test: Remove your coolant resivior and set it aside (the battery makes a good holder for it). Now start your engine (if you can). While it's ideling, wiggle each of the three PCM connectors, if the engine starts to sputter or stall - there's your problem.
Cure1: Remove the three plugs. Remove the three screws that hold the PCM to the firewall. Get a platemakers or typewritter eraser, the type you can sharpen in a pencil sharpener. Polish each pin on the PMC - without bending them. Next, get a high quality contact cleaner and give a SHORT spray into each of the three plugs. Plug them back in and pull them out several times to help clean the sockets in the plugs. Plug them in for the final time. Make sure they latch in place. Go go to ACE hardware or the like and get 6 each 24" tie straps. Ace sells them in pacakages of 10. Strap each plug to the PCM using 2 tie straps, vertically - one on each side of the harness bundle. Do this for all three plugs. Get them nice and snug. Clip off the remaining strap length. Mount back in engine and start it up. Should work like a charm. I'm sure you've replaced everything else by now, so you shouldn't have any more problems.
In my case, the socket pins in the plugs are worn out to where the tywrap solution no longer works. I'm currently looking into replacement pins. The connectors can come apart to be repaired. So far the closest pins I've found cost $10 EACH! *Ouch* Still Looking! Good Luck, hope that Helps