okay...that is exactly the same problem i had...fans only spun when i turned teh car off
this is waht you have to do:
there are the 2 green plugs as i cicled...most likely its teh top one (near teh intake)...but u can check them by un plugging them and using the paper clip technique to complete the cicuit
so unplug the green 'plug' and just use a wrench to take off the part that it plugs into....have the new one ready cuz hte fluid starts to come out (so make sure car is cool) then just screw it back on, and tighten it up and you're done
mine costed me $60 for the part from the dealer, but that is canadian dollars