Probably a bad charging port, you might need to take it in for repairs if you have tried absolutely everything.
open