Astro van heat / cooling

1998 Astro van dash temp.control sometimes does not work.It stays stuck on full heat or full cold at any setting.Air selection control works(defrost-floor-vent)and blower works fine.Thermostat has been replaced and water temp.checked and is o.k.