1. Try a charger from the laptop maker that is for this laptop.
2. If that fails the usual is a new motherboard.
3. If you have a good technician have them pull the board and put in a new power connector on the motherboard. These do fail for some and there's an entire industry for laptop power jack repair.

-> If it's working now, why this discussion?