Try a different apple charging cable, a different computer, and a different wall socket. Clean out your charging port with compressed air also. Reset your phone, hold the home and off button down until the apple symbol comes up. If none of this works , then you probably have a bad battery.
This site contains user submitted content, comments and opinions and is for informational purposes only.
Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site.