Take a jumper wire from the sender to a clean spot on the frame. If it works at times it sounds like and intermittent ground. Check all your body grounds. Battery should have a good ground and the engine should have a good ground from the rear of the engine to the fire wall.
Quote:

My guess the float is full of fuel and does not follow the fuel level.


stated new sender.