How magma became a magma?

Can you answer this question?