What happens if you text and or call someone who has an AT&T Iphone when they changed their number?

What happens if you text and or call someone who has an AT&T Iphone when they changed their number?

You get a message saying that this number is no longer available. Its basically the same across all carriers. It won't work

It won't work