What makes a plane crash?

One of the first things a pilot is taught is that when an anomaly occurs, make sure you keep flying the plane.