Richard,
The above comments are correct. FYI, When the wire that runs from the tank to the guage is disconnected the guage will peg itself on the full side so a bad connection anywhere along the way will cause your problem. It sounds like your guage is OK, it's not getting the signal from the tank.
Good luck,
Bill