In addition to other answers, dams are sometimes used for mechanical power without generating electricity. More likely to be historic use than current use, but also likely to be a candidate for removal for fish habitat.