If you accidentally blocked someone's number while trying to block spam messages, you can also unblock them from the Samsung Messages app.
As a last resort, you can also unblock someone's number from the Samsung phone settings.
If you can’t find them in the Phone settings, try here: