My laptops battery suddenly stopped working

Doodlebean

Honorable
Jan 5, 2014
2
0
10,510
Hi!
I have an Alienware M14X, and the other night the charger fell out and the laptop just died. When i plugged the charger back inn and started it up i got a message saying that the batterys charging has been disabled and that i have to reset the AC adapter. I did this, but the problem wasn't solved. The laptop works just fine when the charger is plugged in, but the second i take it out the computer shuts of, just as if there wasn't a battery inn it.
Is there a way to fix this or do I have to get a new battery?
Thank you in advance, and I apologize for any bad spelling.