Massa lost control as a result of Alonso's engine failure and went backwards into the barrier.
There were yellow flags and Trulli nearly lost it before Massa crashed. You wonder why Massa wasn't warned or why he didn't slow down as a result of the yellow flags