The only time you need to capitalise this word is when you are naming the planets : Venus, Mars, Jupiter, Mercury, Saturn.... then 'Earth' would need a capital E.
At all other times, earth is just a word, not a name, so you don't need a capital letter.