Be careful: if the warm engine has just been turned off, never keep your hands near the fan! The fan can suddenly start even when the ignition is off.
First aid - close the thermal switch
Check the fan fuse first.
In the second step, disconnect the multi-pin connector from the thermal switch.
Close the contact that supplies voltage to the ground contact in the connector. This will eliminate the thermal switch from the electrical circuit. If the fan turns on, the thermal switch is faulty. If it does not work, then either the conductivity in the supply wire is broken, or the fan itself is faulty.
Before the final repair, clamp the jumper wire well. And to prevent the clamped wire from getting under the fan blades, fix its end with adhesive tape in a suitable place.