If you have a multimeter you could measure the resistance of the sender. These normally have a range of 3 ohms to 300 ohms (although models vary). Anything much higher than this indicates a fault. If it reads OK, then suspect the wiring. Note that some units operate in reverse: if you disconnect the sender, then the gauge will show “Full”.