Cold air only when moving...condensor fan is shot...causing freeze up when no air flow. Same thing happened to my 03. $74 for the complete shroud and fan from ebay. About 1 hour to replace, but you have to cut the shroud. Search the forums and you will find all the info you need.
Not sure about the heat part.
2010 Dodge Ram, 5.7 Hemi, Crew Cab