How does confusion between pilots contribute to air accidents, and what measures can prevent it?

A report on the Air India crash points to confusion between pilots as a factor. I wish to understand how such miscommunication occurs and what can be done to enhance cockpit coordination.