Self-answering doesn't change our requirements for what makes a good answer.
In other words, the answer still needs to be complete and self-contained. The relevant information from the comments either needs to be summarized or quoted, so that it appears directly in the body of your answer. (Either way, you would need to give credit to the person who originally left the comment, but you got that part right the first time.)
Because your answer didn't meet our standards, it was flagged and deleted by community members reviewing low-quality posts.* If you edit it and fix the problems with it, then it can be undeleted.
As you said, if the question and answer may be useful to others, then it should continue to exist and have a good answer!
__
* Granted, the auto-comment that one of the reviewers chose to leave was wrong and very misleading. They should have been paying more attention. Sorry about that. I've removed it now.