Most likely, the single wire sensor is for the gauge, and the 2 wire for the ECM.
That is, unless the single wire sensor is a switch for the fan relay. Follow its wire.
Ohm the single wire sensor, there should be some ohms between its prong and ground. Infinite ohms indicates:
1) You've found the fan switch, now replace it
2) You've found a varistor that's no good, replace it.
The two pin one you can check the ohms between pins then look them up on a chart on the web somewhere. Do it after the car's sat overnight so it'll be ambient temp. Most of these things have the same temp/ohms gradient, make independent.
Also you can take the wire to the single-pin thing, turn the key to "run" but don't start the car, and ground this wire. If the fan comes on, there was your fan switch. If your dash gauge goes full hot, it's your gauge sender. Don't leave it grounded too long, could be bad for the gauge.