That’s really hard to do in computing: both hardware and software have massive scaling effects which make it hard to survive in a low-volume business.
The physical keyboard was really nice but the rest of the phones just weren’t. If they’d shipped a WebKit browser earlier it might have helped but they really hit a hubris-assisted low point floundering for years right when Apple and even Google started executing very well.
The best case might have been a Microsoft acquisition and doubling down on enterprise integration and features like the really nice one they added for locking down your work account from your personal data on the phone.