To back up and restore from iCloud, start by going to Settings > General > Reset, then Erase all content and settings. After that, Apple iPhone will restart, then follow the setup instructions until the screen appears iPhone settings. There will be an option to restore from iCloud backup available, select it to continue.