Blackberry failed because they didn't spend 5+ years building a complete mobile OS that carried all the amazing stuff that desktop OS had at the time (top tier, networking, graphics multi tasking etc.). By the time the iPhone launched, all the competitors were already screwed.