I had a machine that acted similarly, turned out to be a power supply. Try to boot a live Linux CD and run it for awhile. That should let you know if everything works :)