Can you still see the screen, and interact via keyboard?
Just search around TMO for how to read or export sms via terminal, and/or see here: https://wiki.maemo.org/Terminal https://www.pittnerovi.com/jiri/hobby/electronics/n900/