This is how to diagnose a phone that's not charging. There are many reasons iPhone will not charge. This is one of them