The way to block someone texting you on your cellphone will depend on what type of cell phone you have.
But you should be able to block texts by blocking the phone number that is texting you.
To block the number there should be an option near the phone number in your phones contacts or in your recent received calls list.