Melting occurs when the molecules of a solid speed up enough that the motion overcomes the attractions so that the molecules can move past each other as a liquid.
To melt a solid energy is required to overcome the attractions between the particles and allow them to pull them apart. The energy is provided when the solid is heated up. The temperature at which something melts is called its "melting point" or melting temperature.