If the gauge pegs full, that is almost good news.

Most likely the gauge is good; and, most likely your ground at the sender in the fuel tank is bad (or, the sender in the tank is bad). First, try running a lead from a body/frame-ground to a sender-to-fuel-tank attachment screw.