Ibrahim Hanif make sure that you do have a good cable and you could try an original. If that does not work you will have to check the power port. Clean it with a couple of drops of isopropyl Alcohol and some puffs of compressed air or equivalent. If that does not change anything your next step would be to replace the charging board.
+
+
A bad battery would not give you that type of error message. If you take your phone apart its always a good idea to change it anyway.
Ibrahim Hanif make sure that you do have a good cable and you could try an original. If that does not work you will have to check the power port. Clean it with a couple of drops of isopropyl Alcohol and some puffs of compressed air or equivalent. If that does not change anything your next step would be to replace the charging board.