1999 Jeep Grand Cherokee Limited. 4.7 v8. 240000 miles+. Jeep started missing towing a light trailer up a grade, engine was heating but not to redline. Stopped and shut off then could not get a restart. Fuel pump runs and has pressure at the fuel rail. Cranks but sounds to be loading. Fault code indicates Cam Position Sensor P3040. I replaced the sensor and confirmed 5v power at the connector as well as a good ground and no shorts indicated. Secondary problem not likely related is failed harness in the drivers door. Any help???