You have the battery, the wall adapter and the motherboard in the laptop. I'd replace the cheapest part first then the next and finally the last when trying to fix this.
Bob