One common reason for faulty charging is simply that your phone's charging port is clogged with fluff, dirt and other debris from inside your pocket, and all that compacted rubbish is preventing your ...
If you're an AT&T customer, you can unlock your phone using a portal on the AT&T website. You'll need to have paid all of your bills first.