Hey @Sahit and thanks for posting!
Many factors can cause a phone to not charge; it ca be software related, hardware related, or even the charger itself.
The best thing to first do is test a different charger. Have you had the chance to do that?
If it still does not work, we'll go from there to see what can be causing this!