Hard drives are one of the components in computers that tend to die randomly. While shaking, heat and vibration can damage them, or make them more likely to get damaged, it isn't the only reason. Hard drive manufacturing is extremely difficult, and the drives have to keep the heads within microns of the platter without actually touching it (if they touch you'll end up with a head crash which can cause clicking sounds and a dead drive). Often times these things just happen. As with all moving parts, things fail, and don't always fail at predictable rates. Sometimes you'll get lucky and have a drive that will last for 5+ years, and sometimes they'll die quick. On the plus side, drives lifespans generally fall into one of two curves. Many drives will die in their first 6months-year of life, and many drives will start to die after 4 or 5 years of life. In between those ages drives tend to be pretty good.
Phil