Use HP Support Assistant ... putting it back in and turning things on again. If the battery still won't charge, you may need to get a replacement. Why is my laptop saying "no charger detected?" ...
Once you have the tool kit, you'll need a replacement battery. Check the model number on your computer and then look up the battery on the manufacturer's website to know which replacement battery ...