Hi there, hope you’re having a good day!
The answer is thermal energy, although temperature is kind of the same thing. The ice-cream melts due to really hot temperature or thermal energy, which is the internal energy of an object.
................................................................................................................................................................
If you need better explanations, then please write in the comments (because I am too lazy to type now)
Thanks, for reading. And have a great rest of your day!