Sedimentary rocks can change into metamorphic rock or into igneous rock. Metamorphic rock can change into igneous or sedimentary rock. Igneous rock forms when magma cools and make crystals. Magma is a hot liquid make of melted minerals.
Hope this helps.