Why do I have to plug and unplug my iPhone multiple times in order for it to charge?

Why do I have to plug and unplug my iPhone multiple times in order for it to charge?

Usually that is going to mean either a dodgy cable or a dodgy connector on the phone. Try a different cable if you can!

Either the charging port is damaged or the cable or charger is damaged. I would tend to think if the cable works on another phone, it's the port on the phone that is at fault.