Any number of causes for this issue.
It could be that your battery needs to be replaced, or a faulty charger, or even a faulty charging port on your phone.
I would recommend that you take it to your service provider and see if there is an obvious reason such as one of those I mentioned.