Not sure about the first picture but the plug in the second is supposed to go to the Thermo-Time switch. on the water pump under the hose on the left side. Your wiring harness looks all taped up and re-routed. Someone was messing around with it. Does the car start well when cold?