Start with cleaning the connections on gauge and check the gray wire on the coil
In most cases it does just need to be replaced because the manufacture that made the gauge either no longer makes that one, or they are out of business. Find out who made the gauge and see if they can repair