had a 2003 gc with inline 6. the cam sensor is easy. the crank sensor is hard to reach and needs a swivel head ratchet wrench.
if your engine is dieing while running like if you shut the key off, you might have a worn injector wiring harness. on the I-6 the harness comes around the back of the valve cover and rests on the valve cover stud. on mine after about 50k miles the engine starting turning off while driving down the road. sometimes it would restart immediately, other times it would take 5 minutes for the security anti-theft thing to disable and let you restart. then the engine would die after 5 minutes of running regardless. turns out the valve cover stud wore into the harness, chafed wires and grounded out 2 or 3 fuel injector wires. this confused the computer and caused a computer reset according to dealer, which immediately kills the engine and is also why a DTC was never set. the dealer seemed to know about this because he diagnosed it just after i had it towed there. the fix was to redo and insulate those chaffed wires, then put a piece of rubber hose over the exposed valve cover stud.
if you have a reman engine, too bad. if everything was orignal you should crash it and sue jeep, its a design flaw.