This is most likely due to a faulty blend door actuator. Over time the components of the blend door actuator can wear out and it will stop working. At times it could stick causing it to only blow cold air or hot air. In order to fix this and for your vehicle to be the temperature that you want it to be it will need to be replaced.
Give us a call and let us take care of you.