When magma better known as lava pours at the volcano it will set and harden in igneous rock when on the Earth's surface, wind and water can break this rock into pieces. They can also be carried to another place. Normally, the rock pieces, called sediments, fall from the wind or water to make a layer. This layer can be buried under other layers of sediments. After a long time the sediments will become cemented together to make sedimentary rock. This is how igneous rock can become sedimentary rock.
All rock can be heated. The further you descend into the earth the hotter it will become. The rocks will get baked but does not melt, but it does change. It forms crystals. If it has crystals already, it forms larger crystals. Because this rock changes, it is called metamorphic. That change is called metamorphosis. Metamorphosis can occur in rock when they are heated to 300 to 700 degrees Celsius, and this rock cycle will continue.