First, it depends on the solid, solids melt at different temperatures, but to answer your question, we would say this:
When a solid is heated with thermal energy, the particles in the solid start to vibrate rapidly until the particles cannot hold each other together anymore, then they break apart into a liquid.
Hope I helped.