It will NOT charge at all ? If it won't charge, it is likely dead. If your computer is within warranty, you should have the battery replaced under warranty.
If it won't charge at all, take the battery out and try running the computer only with the AC-DC power adapter brick, if that works, try inserting the battery back. If it still won't charge, the battery likely needs a replacement. This likely eliminates the possibility that the AC-DC power adapter is at fault.
A different possibility is that the charging circuitry in the laptop is not working.
THere could be other causes/issues, but try those steps first to see if you can isolate the cause.
Other option Have been Identified - Failed to see How old the battery was.
Checking the AC power adaptor, with battery removed. Not a 100 %, but if it powers the laptop, most likely good. Remote possibility is that the current output is unable to do both.
Laptop internal input charging ciruitry - Hard to check outside of replacing the battery with a Known good one and checking. NOTE Charging circuit may be in Battery pac.
Battery it self. The battery consist of 2 or 3 "pack" of batteries in Parallel Plus a circuit to determine health and also controlls charging.
Probably the best method is to replace - (1) it Fixes problem - Good, and (2) If it does not solve problem and problem is solved then you NOW have two battery pacs to alternate.