There is one long running thread on the MacRumors forums (since 2007) where several users have complained that they have not been able to charge their iPhones from a wall charger. Apparently, there is no issue when the same cable is used to charge from a computer or while using a charger to power an iPod from the wall.
This is not a very prevalent case since not many users appear to have come across such a bug, but in case you are facing such an issue, there is a likelihood for the problem to lie with your software. Apparently, the iPhone does not indicate that it’s getting charged though the battery indeed is being powered. In such a case, simply try a soft reset – hold the Home button and Power button down together for a few seconds and perform a reset. This should fix the problem.
To some users, merely charging on a second wall socket seems to have worked.
“I tried charging it using a different wall socket and it worked. When i switched back to the original wall socket, it worked again. Wierd.”
And then, there’s this third alternative that seems to fix the issue, though it sounds more like finger gymnastics
1. switch the mute switch 4 times (up, down, up down)
2. now press home and power for 6-10 seconds
3. wait 30 seconds and turn back on
Are you one of those facing this issue? Does any of these solutions work on your iPhone? Write down in the comments.