How does cooling relay and temp switch work?

Does the temp switch energize the coil of the relay? Or does the temp switch provide ground to the fan motor itself?
It is a 1991 jetta diesel non computer

I have read both explanations online .

I have replaced the temp switch and relay still no fan without applying 12v to it
1 answer 1