This seems to be a battery problem. Some computers will run only if the battery is in good shape, and do not run at all with the battery removed.
Your's is a minor annoyance that can usually be solved by getting a new battery. Depending on you how use the computer it is safe to assume that a battery is past it's service life after 6 months to 1 year. If that is so then please get a new battery.