The tablet’s charging port may be broken, or the battery has reached the end of its charging life cycle. You can take the tablet to a repair shop or hire a tablet repair specialist on Airtasker to have a look. They can find the problem and let you know if it can still be repaired. You can decide from there if you still want to have the tablet fixed or buy a new tablet.