You can update iPhone software in Settings, or by using iTunes. You can also erase or restore iPhone, and then use iCloud or iTunes to restore from a backup.