Charging issue

My nokia 6 stop charging many times when i plugged it on charging... Many times its discharging in spite of plugged in charge