car overheating, radiator fan not coming on on 2004 Volkswagen Golf

checked fan motor hot wired to battery,at first wouldnt run, took apart motor found brushes sticking cleaned w/contact cleaner tested again with battrey, fan runs. reinstalled ran car fan doesnt come on,but if ac turned on both fans run

Asked by for the 2004 Volkswagen Golf