How Earth was Formed?

The earth was formed millions of years ago in a manner that there isn’t a consensus on to this day. Most people feel it was either created by god or the big bang theory.