When your laptop is plugged in and charging why is it saying not charging?

My charger was broken. The green light was on but the electricity was not actually getting to my battery. That was why I had to buy a new charger before my battery would actually charge.