There are many samsung galaxy users, if you lost your phone text messages or contacts by accident, I recommend you to use an android sms + contacts recovery app to help.
And I think Coolmuster Android Data Recovery works great, we can use it to recover lost text messages and contacts from samsung galaxy easily.
Don't know how to restore samsung galaxy text messages or contacts on computer, just have a try!
And remember root your phone at first, or the app can't detect your phone successfully. And stop saving new data to your phone, or the deleted data will be covered.