This seems pretty obvious, but there is one culprit that is behind most hive deaths, year round: the varroa mite. You can control it, but you will need to treat for mites multiple times a year. Sound like overkill? Hyperbole? Exaggeration? Check out my varroa mite page to find out how to prevent mites from taking your hive down.
When we walk out to the beeyard and see the bees aren't flying, and we pop the lid and see the bees are either gone, or dead, it's time for an autopsy. There will be clues left behind, and the autopsy page has a list of what to look for, and what those clues mean. Hives die on every beekeeper's watch; it's the learning that happens after you find a hive has died that matters. Read the autopsy page before you toss any dead bees out of the hive!!!
You can lose a hive in the summer due to its population shrinking too much. The hive will lose foragers every time they go out. If there aren't enough new bees being born, then the hive will be vulnerable to opportunistic killers.