This site tells the story of the history of the universe. Click Earlier and Later to follow the story.
Note: Many facts have been simplified to make them easier to understand. Our new free weekly podcast Time Crystal tells this story as sci-fi fantasy
There are probably two types of volcanoes.
On the young Earth it may have been radioactive heating which make light rocks collect together inside the mantle and bubble up to the surface. This may have formed the early crust.