How I Got My iPhone to Charge Again

It turns out my iPhone charging port was full of lint. If you come into this problem too, you can take a toothpick and remove the offending fibres. In my case the lint wasn’t covering the contacts, but it was packed into the back of the charging port which means the lightening cable couldn’t get in far enough.