What happens to partials of a solid as thermal energy is added and the solid undergoes a phase change?

Define the Law of Conservation if Energy.

If someone can help me with these questions, that would be great!