Chairman Ray said:
If you remember it working before, there's no reason why it shouldn't work now. Two things you need to look out for: 1. Blow out all the dust it gathered since older HP laptops are very prone to overheating. 2. Be sure to get an authentic charger, not a cheap one from China.
All consumer HP products are cheap ones from China