2000 Ford Contour Cooling Fan

The fan runs normal until I put the heat or defroster on then the fan comes off and on too much, every few seconds and the car jerks forward. With my foot on the brake I feel the car jerking forward like its racing but when the heater or defroster is off the car does not do that. Any suggestions of what the problem might be would really be appreciated. Thank you.