From the blog
Why iPhone won?t charge? Fix iPhone not charging yourself at home

Your iPhone won?t charge when you plugged-in but wait is it working fine on last charging time? Did you drop your iPhone during this time? NO, then you must continue to troubleshoot the not charging problem with this?
Read More ?