essentially, ice cream melts because it absorbs the energy around it in the form of heat. this extra energy causes the atoms to vibrate, turning the solid into a liquid--and eventually into a gas (which is not actually possible on earth outside of lab conditions).