ReiBoot is a great iPhone repair software that will repair devices stuck in recovery mode, DFU stuck on loading screen, rebooting devices, devices stuck on lock screen, devices invisible to iTunes, and devices that keep thinking that headphones are connected to them.