You can block a phone number or existing contact on your iPhone from the Phone app or your Contact list.
If you don’t want to receive calls from specific or unknown numbers on your Android phone, you can block them all using the Phone or Messages app.