Rocks and Soil

What do rocks tell us about the way the Earth was formed?