I have a phone that onky turns on when plugged into a wall charger. When it does boot up there is a passcode lock on it. After a few minutes it reboots. Im t
You need a new battery and/or a check that the all the battery related components are in place. Assuming this is a regular issue, replacing the battery will help as well as putting in the correct passcode if you don't want to DFU restore the device
Uninstall your USB drivers and reboot your pc. Plug your iPhone back into your computer and wait for iTunes or my computer to recognize it. Otherwise uninstall iTunes, uninstall your USB drivers, reboot, reinstall ones and try again