It's even worse if you use iMessage. If you take out your usual SIM card to replace it with a foreign one, people can't iMessage you anymore, unless they use your Apple ID (email address) for it. Other apps like WhatsApp have an option to keep using the previous number even in the absence of the SIM card.