If your laptop is plugged in and not showing charging then it's mainly due to a loose DC jack. Yet, it can also be due to poor battery health and malfunctioning charger pin.