I have a 1996 Jeep Cherokee XJ - 230,000 miles - automatic - 4.0 Oval Crankshaft position sensor. The aftermarket part went out and I ordered 4 cheap replacements, which crank the engine but won't recrank when turned off. I ordered a standard product and it won't even crank. The same applies to a CROWN Position sensor. I then ordered a MORPAR product, and it wouldn't crank. When checked with an ohmmeter they had bad resistance. I was told that I had to follow a certain process to reset the computer and all. I've tried tried all the ways I was told to reset all, but nothing works. I've received a warranty MORPAR part, but am scared to put it in. I had been driving the jeep for 2 years without problem and it I pulled in, turned it off, and it wouldn't crank the next morning. The battery had been tested and was bad. I replaced the battery and that didn't help. Can you help me in any way, Scotty?
The 4.0 in general does not like aftermarket sensors. The Mopar crank sensors should be OK but you may have gotten a dead one. (Was it from a reputable vendor? There are a lot of Chinese knockoffs out there on Ebay and Amazon.) Other than that you may have a problem with wiring or the ECU. There no need to reset or program the computer that I've ever heard of.
https://www.youtube.com/watch?v=vzb8yeJZSQY