Recovery mode allows you to erase the iPhone, giving you access to set it up again. After you erase your iPhone, you can restore your data and settings from a backup. If you didn't back up your iPhone, you can set it up as a new device and then download any data that you have in iCloud.