That is a flat battery. The DS needs enough charge to boot, and when it does not have it, you get a brief flash of life followed by an automatic shutdown.
Plug the charger into the socket on the back right of the unit, close to the corner — it only fits one way. An orange light should come on to confirm it is charging. You can play while it charges, but give it a solid block of time before you expect normal battery life back.
Then the problem is the charger or the socket rather than the battery. Try a different charger, and check the port for lint or a bent pin. A console that will not accept a charge will behave exactly as you describe no matter how long you leave it plugged in.