This seems to be 4 or more years old so that's a typical life span.

If you want to fix it, if the charger is good then you usually find it's the motherboard. If the battery is the original you replace that at the same time.