Hi, thanks for using JustAnswer.com I am Cris and will be glad to assist you with your question.
If you have your iPhone plugged into the charger, remove it for 20 seconds.
Then plug it back on for 5 minutes, while it is still plugged in press and hold the top button and home button down together at the same time.
Continue to hold the two buttons down for up to 1 minute or until the Apple logo appears. When it does let go and leave the phone charging until fully charge.
Let me know if this solution works for you. Reply back to me if it does or if you have any further questions. If the solution works please take the time to rate my service at the top and submit.