Clean the charging port with a pin. Usually it’s filled with lint. Otherwise change the chargering port. Easy fix, shouldn’t cost $5.
open