I would also recommend checking your charging port to make sure there isn't anything blocking the charging connections.
Lastly, you can try a factory reset, which will give the device a clean, fresh start. Be sure to back up everything you wish not to lose beforehand: