I just bought a new HP laptop. The battery doesn't charge but when it's plugged it in works.?

So i bought a brand new hp laptop with windows vista and i accidentally kept using it until it ran out of battery power. i plugged it in and it turns on but the battery meter says 0% available (plugged in, not charging). I have tried using different outlets and taking out the battery but nothing worked. please help
8 answers 8