There are several ways to back up your data.
Go to “Settings”->Touch “System”->Touch “Backup” (this function may appear under different menus according to the type of device) ->Activate “Back up to Google Drive” in the window which has now opened->Touch “Back up Now. You need to add your Google account details first.
* App data, SMS text messages, Device settings, Call history, and Contacts will be backed up.
You can back up your data to another phone via the “Switch Phone” app, and then recover data when your phone has been repaired.
Swipe up in the home screen to find the search bar->enter “Switch Phone” ->Transfer the contents by following the instructions.