This happened to me earlier in the year in London - I could charge magnetically but not via a cable. I went to the nearest Apple Store and one of the genii used the Apple sim removing tool to extract a surprising amount of gunk from the (lightning) port. He said it was common to see in people who wear jeans (guilty) as the material fluffs a lot in the pockets.