When you heat some solid substances like wood they catch fire and burn away. They do not melt. When you heat other solid substances like butter they become soft, and then turn into a liquid. We say that they have melted and become molten.
Melting happens when the particles (molecules) of a substacne stop holding eachother together tightly, so the particles can slip over one another. When something is fully molten it is a liquid. Some substacnes melt over a rnage of temmperatures becaue they are mixtures of things. Butter is like this. On the other land, pure substances melt at a fixed temperature. Ice is like this.
Some substances like butter and chocolate do not need much heat to melt them. Chocolate melts at about 38°C, which is why it melts on your fingers, but other substances need much higher temperatures to melt. Metals, for example, need to be very hot. Iron can be melted if it is heated to 1536°C. That is over fifteen times hotter than a boiling kettle.
When a molten substance is allowed to cool down again it turns back into a solid.