The temperature sensor produces a resistance that depends on coolant temperature.
If you substitute a 50 ohm resistor for the sensor, the gauge should read around mid-scale (since it is receiving approximately the same resistance as the sensor would be producing with the coolant at normal operating temperature).
If the gauge reading still bounces around while the resistor is substituting for the sensor, you know that the problem lies in the gauge - not in the sensor.