Gandalf returned because he was sent back by an order higher than his own power to reincarnate and higher than the Valar; he wandered 'beyond space and time', after all.
Sauron lost his ability to assume new forms, including after the destruction of a current one, when he fully incarnated himself to forge the Ring. Before that he was just fine, albeit perhaps diminished in power to an unknown degree.
|