2004 ford explorer 4.6

2004-ford-explorer
I have a 2004 ford explorer with a 4.6 engine, it has a high temp/low oil pressure light on. I have changed the oil pressure sensor and the cylinder head temp sensor and the light is still on and the temperature Gauge is not working. All fluids are good. I touch the wire at the plug with a led test light and the gauge went to working and the light went out. Once I took the test light from the wire the light come back on and the gauge fell back down. Can anyone help