Normally the lightening connector is quite a firm connection.
Check carefully with a toothpick the female end of the device hasn’t got fluff compacted in it! Somebody suggested this at work with my 5s, and sure enough, full of fluff. Hopefully easy fix!