I would recommend you to try cleaning the port, often it’s way more dust etc. in there than you think can fit.
To do this, I would recommend using a needle or something similar and really carefully scrape it against the sides of the port to try and remove any possible dust.
This should hopefully remove most of the dust that has got stuck in there, if this helped the problem was that the connection between the two connectors got bad due to all the dust.
''Good luck and hope this helped! :D''