Are you asking how those three rocks related to each other?
The rock cycle explains how the three rock types are related to each other, and how processes change from one type to another over time. - http://funadvice.com/r/14ttmn1fmam
igneous and sedimentary rocks become metamorphic rock as a result of intense heat from magma and the pressure from burial within the earth. Even when it goes through the heat it doesn't melt, I hope this helps some!