Why do projects fail?

While the answer to this might not always be simple, by working in successful projects and some not so successful I have come to understand what can work and what generally doesn’t.