Stop in for a cup of coffee

To test it,connect other wire to ground and turn on key. If gauge sweeps it means the wiring and gauge are good.
What do you mean... "other wire"??? Do you mean just run a separate ground to the frame over to the sending unit?