If it is between 12 to 18 months or more it may be in need of replacement. NB Batteries do not last forever and the less that they are used the shorter it is that they last.
So if you constantly run your NB on Mains Power through the Mains Adapter the battery will not last as long as it would if you used the NB on Battery Power quite often.
The other easy possibility here is that the Mains Adapter is not producing the required Voltage or Current and is incapable of charging the battery.
The nasty issue here is that the Power Converter on the M'Board has failed and either is not producing enough Voltage/Current to charge the battery or the link to the battery has failed completely and there is no power reaching it though the NB will run off the Mains Adapter.
of course if the NB is not running at all the M'Board, or Mains Adapter has failed completely and has gone to [b]Silicon Heaven.[/b]
It is also possible that the Power Jack on the NB that you plug the Mains Adapter into has broken, these can pull off the M'Board and not pass any power on if the NB is often packed away with the Mains Adapter left in the NB or the NB is pushed against solid objects when running on Mains Power.
Col