It's the crank sensor!
Join Date: Nov 2007
Location: Central Minnesota
Get back to basics. Spark + fuel + compression = start.
Let's assume that compression is okay since it just died while running. How did you check for spark?
Pull a spark plug. Keep it attached to the plug wire and place the electrode of the plug near a good engine ground. Have a buddy crank the engine while you watch. You are looking for a strong, blue, snapping spark. Orange isn't good.
A quick and dirty test for fuel is to spray a small amount of starter fluid into the intake. If the engine starts and runs momentarily, you have a fuel delivery problem.
Once you know exactly what you are missing, it makes the suspect list a whole lot shorter.
If the crank sensor signal isn't making it to the computer, you will not have spark OR fuel to the injectors. Cleaning the connectors for the crank sensor is something you can try. Use electrical contact cleaner. Remember that there is also a crank sensor connector under the hood near the firewall #6 injector. Corrosion of either of these connectors can inhibit the crank sensor signal from making it to the computer. How exactly did you test your crank sensor and what resistance readings did you get?
Try removing the connector for the crank sensor and turn the key on and see if that allows the battery and fuel gauges to work again. If it does, then you absolutely need to focus on the crank sensor CIRCUIT, not just the sensor. That means sensor, wiring, connectors.
Good luck and post back what you find.
99 Cherokee, 4.0 AW4, NP242
Past Jeeps: 49 Willys, 81 Scrambler, 88 Comanche
Without "data", all you have is an opinion!