Fuel injected engines have 2 temp units
ECT sensor, 5volt, 2 wire, only used by the engine computer
Temp sender, 12volt, usually 1 wire, can be 2, only used by dash board temp gauge
They look similar but are not at all the same
Most parts stores will send you away with an ECT sensor, lol
You often have to spell it for them, S E N D E R, sender
1997 should still be 1 wire, a red/white wire
NEVER put tape on the threads of these, they need a good metal to metal ground to engine
To test the wire and gauge use a jumper wire from battery negative(ground) to the unhooked red/white wire
Turn on the key
Temp gauge should go all the way up to HOT
If so then wire and gauge are OK, replace sender
If not then wire or gauge has the problem
Just FYI, ECT sensor has a grey/red and green/red wires, always 2 wires