Question: why are all my messages deleted iphone?
Answer: Incorrect settings. You can go to Settings > Messages > Keep Messages to have a check. If it is not Forever, it is the reason that iPhone deleted all messages. And set the option to Forever, please, in case you will lose your messages due to this reason again.