We are sorry to hear you received unwanted messages and we will do everything we can to help you.
To block a number or a contact:
Tap the conversation with the person you want to block.
Tap the 3 vertical dots on the top right corner,
You won't receive any more message from this person until you decide to unblock.