Why won't my iPhone charge when I plug it up?

When I plug up my iPhone charger it says it's charging but the battery percent still drops

Perhaps the wall piece is not plugged in all the way. If its not that, the cord must be cut short. You have to buy another one. Apple chargers break pretty easily, I've gone through 3 in the past 6 months.