A great take on where RIM really went wrong by Horace Dediu:

But RIM did nothing. Almost nothing. They were the healthiest competitor. They felt no pain from iPhone’s entry.

This is really worth the read.