As per your original post and thread title, my reply is for blocking texts in Messaging. No message is sent to the sender. You will not know a text has been sent. These answers are carrier dependent.
If you wish to block calls, go to the contact in your address book... Menu (3 dots) > Add to Auto reject list
All calls will then go automatically to your voicemail, if set up.