Er... millions of pieces of ham flew together, and got stale and crusty, forming what we know as "Earth". Then they got moldy, which is where our plants come from. And that's how the Earth was made.
More realistically, I don't know. After all, if the big bang happened, why would all of the other planets be round and the Earth flat? It doesn't make too much sense that way.