One way to get the messages to stop is to reply back to the sender with STOP. If it's coming from an automated system that normally does the trick. There may be a block option if you tap the message thread, then tap the 3 dots on the upper right hand side. Please give that a shot and let us know if that works.
Manage your T-Mobile account