Loose cable
If the problem persists, make sure all cables inside the computer case are firmly attached to the motherboard and each component. You'll want to check the IDE cables and SATA cables, which are typically connected to the hard drive, CD or DVD drive, and floppy drive (if present). Check both ends of each cable and make sure they are firmly attached to the component and the motherboard. Turn on the computer and test to see if this resolves the issue.
Tip: Sometimes the best way to verify a cable is not loose is to disconnect and then reconnect the cable on both ends.
(link removed by moderator)
Electrical short
An electrical short in a computer, which may cause power issues, happens when pieces of metal cause a path for electricity to flow through that shouldn't exist. Computers are full of screws, as they hold nearly ever internal component in place, and from time to time they can come loose. Lift up your computer and gently rotate it while softly shaking it from side to side. If you here what sounds like small rocks banging around, it's likely that you have loose screws inside the case. Open the computer up and remove them.
Memory issue
Verify the memory modules are properly seated in the memory slots on the motherboard. To do this, open the computer, remove the memory modules from their slots, and gently reseat them. It also is important to note that memory modules should be installed in pairs and in matching slots, which are designated by matching colors. Make sure the chips are firmly seated and the clamps on both sides of each chip snap into place. Plug in the power cord and turn the computer on to see if the issue is resolved.