Hello kkr1,
Thanks for using Apple Support Communities.
I see from your post that your iPhone is not getting charged and is restarting. To start troubleshooting this issue please follow the steps outlined below.
If the battery doesn’t charge, unplug your device and try these steps:
- Look at the connector at the bottom of your device and make sure it’s free of debris.
- If you're using a USB power adapter, make sure it's plugged in all the way and the power outlet is working. If you're connecting to a computer, make sure it's on and can charge your device. To charge an iPad, you might need to use a USB power adapter and plug into a power outlet.
- Try a different USB cable, USB power adapter, or USB port.
- If everything seems to be working, reconnect your device and wait for 30 minutes.
- If your device still doesn’t charge, try to restart it while it's connected to power. If you can't restart, force your device to restart.
If you can’t charge your iPhone, iPad, or iPod touch - Apple Support
If the issue persists after that, please let me know.
Take care.