How to fix a charger port on a tablet?

How to fix a charger port on a tablet? how to change battery, connector flex cable, and charging port when the tablet won’t charge.