Sometimes with a new battery. Usually ESD damage you can’t see. If lightning port is having issues it’s fucked. There’s maybe a few repair options at that point, involves shit I don’t know how to do.
It’s crazy how much shit it’s going on in these things.