Is your motor not running at all or is it turning on and off at the wrong times? It could be as simple as your mosfet is not turning off because the resistor is too big. But more information is needed to diagnose the problem
Also, I assume it's a brushless dc computer fan, is it a controller problem with that motor?
Give some more detail about what it's doing, and also take a voltage meter to your temperature sensor and get the voltages from the output you are using for the adc that the motor will use. I assume it's not the problem because your lights are working but again more information about the motor problem is needed. keep "plugging" away at it!