My iPhone 5S won't charge when plugged in?

The phone turned off because it was out of battery but now when I plug it in to charge it says not charging and when I take the plug out it says charging. I had this problem once before but it resolved on its own quite quickly. It's been an hour and no change.

Hi in 99 cases out of 100 the charger has failed so purchase a new one or go take it to a phone shop.

Try holding the Power and Home button down at same time till apple logo appears then release. Also check charge port for lint or dust inside of it