How to change a fan motor or is it a relay switch? on 1994 Lincoln Mark VIII

While the car was idling, the engine started smoking and the temp guage was rising to hot. The hoses and water pump seem to be ok.

Asked by for the 1994 Lincoln Mark VIII
Smoking? From where? Could it have been steam? Bad head gasket...