Re: articles befor moon, earth, sun etc
Welcome to the forum uzma chisti.
We use articles before 'sun' and 'moon' in exactly the same way as we use them before any other countable nouns. We do the same with 'earth' if we regard the word as similar in meaning to 'planet'; if we think of 'Earth' as the name of our planet, then we treat it as a proper noun -without an article in most contexts.
Please do not edit your question after it has received a response. Such editing can make the response hard for others to understand.