If plugged in but not working then their can be several reason -
1 either charger is disturbed some where , in this case test charging through a new charger .
2 try power off and turn on after 15 second minimum .
3 your laptop may have battery issue in that case request a replacement of battery from laptop company
4 if charging pin is not working then request for its replacement from service center .