If it says No Caller ID, Private, or Unknown, there's not any way to block it. To be blocked, there must be a number. You might try using the Message Filtering feature in Settings > Messages. That enables you to better manage those unwanted messages.