might be the battery
run it with the battery removed and see if it works.
you can check the hard disk with HDTune check the SMART and do an error test.
HD Tune website
When you meant that it works when plugged to power do you mean that it works perfectly fine?