Theory behind big bang

How does the earth formed ? After the great explosion what happened next ?