iPhone contents can be saved. Apple has made it possible for iPhone users to create backups because a lot can happen in a blink of an eye.
Whether it be a cracked screen, a lost phone, or accidentally deleting your contents, you can always have your photos, files, and videos saved.
The fastest and easiest way to save your content is by using iCloud. You can also use other services like Google Drive, but it is not as convenient.