1998 Contour LX, 2.0, Automatic.

My temperature guage works sometimes and sometimes not. Is this a common problem? How do I troubleshoot this?? Can this affect the operation of the radiator fan???

Thank You for your help.
-Dan