When you block someone's number on your iPhone, that number can't call, text, or FaceTime you. It won't affect third-party apps like WhatsApp, though.
You can block a number on your phone so that a person or company can't call or text you from a particular number. Here's how ...