hello there,
Everything points to this. Insert the lightning plug into the port and take a photo of the place where the plug enters the housing. Show here. I'll tell you what to do. Maybe it's just a piece of dirt blocking the port space, it happens all the time (you will see it in the photo - as above). Otherwise, due to the broken brackets of the lightning socket, it will need to be replaced. Unfortunately, you probably won't be able to do it yourself without damage. You can find a good repair shop and order a port replacement. It won't be cheap, but it will certainly be done well and only once (which I encourage you to do). Privately, I am a supporter of repairs on your own kitchen table, but unfortunately it requires a bit of equipment and a steady hand. Especially in the case of iPad repair