Before you go changing all kinds of sensors, pick up some heavy duty 24" zip ties. Clean the inside of the pins and the contacts on the PCM with DeOxit G5. Wrap the zipties around the back of the PCM and cross vertically over the connectors and cinch down tight. You'll notice the connectors no longer move in the sockets.

Even if it is not your problem, it's cheap insurance.