The cam sensor in in the back of the cylinder head on a 2.4 and in the front on a 2.7. I have no information for a 3.0. Here are the instructions for the 2.7 below.
A bad cam sensor will give you the issues you describe.
Let me know if this helps you out.
Rich
Image (Click to make bigger)
Friday, November 15th, 2019 AT 8:25 PM