My jeep used to do pretty much the same thing. I tried all sorts of things, crank sensor, cam sensor, new ecu blah blah blah. Ended changing the fuel pump out and that solved the problem for me.
2004 4.0L I6 TJ BUILD:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
1997 2.4L I4 TJ BUILD: