Could be the power socket in the laptop they can split / break, can be some resistors on the mainboard too that go.. also I had one that wouldn’t charge once and found the screw in the base at the power connector corner was loose. I tightened it and it was fine. probably not the same as your problem though as it was still working ok on adaptor, just not charging.