As promised I am at home and here is a png file of the engine controls for the 2.5L. If you look closely it will show you the sensor and the corresponding wire going into the ECU. That way you can backtrace and see where the PO cut or disconnected it from the main harness. As for the matching plug to wire it up check your local parts house or search the net. That connector was used in many vehicles over many years so it should be available.
If you need more let me know.