I recently received an iOS device and it was jailbroken. When I wanted to unjailbreak it, I used "Erase All Content and Settings." The loading screen came on and it has not changed. After rebooting the device, it is now stuck at the Apple logo. What should I do?
Resetting a jailbroken iOS device using the option in settings will cause no end of bad things, usually resulting in a device stuck in a boot loop, which appears to have been the case here.
You'll have to restore your device in iTunes. Connect your device to iTunes, then hold power and home until the screen turns off and back on with the Apple logo, then let go of power but keep holding home. Once the device appears in iTunes, restore it.