Well, the way you put it, it's probably a faulty charging port. Try different wire and the same plug combination, and different plug and the same wire combination. If it doesn't work, the charging port is broken and needs to be replaced
There may be foreign objects in the charging port, clean the charging port and try again.