They still had a sizable lead in enterprise but even there they didn't fix some of their fundamental usability issues in a timely fashion, so a lot of enterprise customers started shifting towards Android and iOS.
Blackberry's problem is that it too them far too long to respond to a sea change in their market. Had their first true flagship touchscreen phone come in 2009 instead of 2013 they might still be a big player.