Test the resistance at the sensor and at the wire at the gauge while it is unplugged from the gauge but plugged into the sensor. If it isn't close to the same it's the wiring. If it is, it's the gauge.
Also double check that the gauge is well grounded. No ground = no work.