Fuel gauge woes...

There is a spring clip that attaches between the line coming out of the tank and goes across a short piece of rubber line and onto the steel line. That is a ground strap. Check it to make sure that you have a good ground.
I had the same trouble, but mine turned out to be the circuit board behind the speedo. The brass terminals were letting go.