Not much info to go on. I'm guessing that when you say that the comp is turning on and off that you're indicating that it working? If that's the case then maybe the valve that controls the flow of coolant to to your heater core is bad. If you mean that the comp continuously turns on and off and doesn't stay running then it could be that your AC charge is low or the pressure switch is bad.