To block someones number, you have to contact your mobile phone carrier and request for a number to be blocked. This service may or may not be free depending on the carrier.
On a house phone you can get a feature that blocks incoming calls from unknown numbers, and on most cell phones you should have a selection where you can block any which number that you would like not to call you.