Login to your Raspberry Pi via Putty
Edit the config.txt file
sudo nano /boot/config.txt
Add the following lines to the end of your config.txt file:
#Enable PWM Fan Control dtoverlay=gpio-fan,gpiopin=14,temp=60000
Save your changes and Reboot
sudo reboot