How did Satan and other angels sin if heaven is sinless?

This article has been translated into the following languages: