@sidharthgoswami could be a battery issue as well as a charging port issue. Since you did not tell us what make and exact model phone this is, I would suggest that you start with a new battery, followed by the charging board (if your phone has a separate one). If not, then the issue could be related to the charging power management IC
@sidharthgoswami since iFixit does not yet have a specific guide for this, use something like this video. I suggest you replace both, your battery and your charging board; then re-evaluate.
While you work on your phone, take lots of pictures. Once you are done with it, take those pictures and create a guide for iFixit. That will help the next person that has a device with the same issues as you do. It's easy and fun to create these guides. https://ifixit.com/Guide/new The iFixit community will appreciate this.
Repair is War on Entropy!
crwdns2934105:0crwdne2934105:0
crwdns2934113:0crwdne2934113:0
crwdns2915270:0crwdne2915270:0
crwdns2889612:0crwdne2889612:0
0