Hi and Welcome. My Name is ***** ***** I look forward to assisting you today with your question.
It is possible that the issue is with the charging adapter.
Did you try connecting to different outlet ?
First reset the System Management Controller of your Mac. Follow the steps below;
Shut down the computer.
Plug in the power adapter to a power source, connecting it to the Mac if not already connected.
On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
Release all the keys and the power button at the same time.
Press the power button to turn on the computer.
Does it charge now ?
Then I'm afraid it is the charging adapter/cable. Is there any way to test with another ?
To rule out software part, you can do the following
We can run Disk Utility and see if it works or not. Turn off your Mac by holding down Power button for 10 seconds. Then turn it back on and immediately hold down Command and R keys at same time for 20 seconds and this will boot your Macto the Mac OS X Utilities screen. From there, click Disk Utility. Select your hard disk at left column (Macintosh HD or hard disk name). Then click Verify Disk (under First Aid). If asked to repair, click Repair Disk. Then click Repair Permission.
If you are using10.11 El Capitan or later, then you will not see Repair Disk option in Disk Utility. Instead click First Aid button and run it. Repair if asked.
Then restart from Apple menu. If that didn't work, then turn it off. Turn it back on and immediately hold down Command, Option, P and R keys at the same time for 5 seconds, then release the keys and immediately hold down Shift key for 20 seconds.
If it still not working, then you need to try another adapter. Let me know
Click on the Apple icon and select About This Mac. Click System Profile or System Report. This will bring a new window. Then click on Power in left side and what is the battery condition ?
Charging is No
Cycle is is only 127
(The fail rate is usually at(###) ###-####cycle)
Condition is Normal
Amperage is also normal
As far as I can see, there is nothing wrong with the batter. I'm afraid it is the charging cable/adapter. When you will be able to test a new adapter ?