MacBook Pro shows not charging when plugged in
https://support.apple.com/en-us/HT201295


  If you're experiencing issues with any of these, you might
  need to reset the SMC.
  
  
  Power, including the power button and power to
  the USB ports
  Battery and charging 
  Fans and other thermal-management features
  Indicators or sensors such as status indicator lights (sleep
  status, battery charging status, and others), the sudden motion
  sensor, the ambient light sensor, and keyboard backlighting
  ...
  


How to reset SMC:


Shut down your Mac.
Press and hold all of these keys:


Shift (left) 
Control  (left) 
Option (Alt)  (left) 

While holding all three keys, press and hold the power button too.
Keep holding all four keys for 10 seconds.
Release all keys, then press the power button to turn on your Mac.