There is so much confusion around this, but to really simplify it:
Ice is for fresh injuries, and heat is for stiff, aching muscles.
In either case, moist, not dry applications are most effective because they penetrate deeper….not superficially as with dry methods.