How does the motor operate the fan?

some fans are driven directly via a fan belt to the crank shaft.

Others are electrically driven and are actuated when the engine reaches a certain temperature.