BlackBerry lost out to Apple and Samsung for dominance of the smartphone market. Fundamentally, the company’s mistakes were linked to an excessive focus on enterprise over consumer tastes and preferences, an OS that nobody was building apps for.