How can I stop Text Messages from going to multiple devices?

Text Messages go to multiple devices

I have 2 iphones linked to a single AppleID. I get text messages on both iphones but I can't text between phones (different numbers). I deleted one device from the icloud but it still doesn't work. Any ideas?

Thanks
Text Messages go to multiple devices

The phones should have separate iCloud, iMessage and Facetime ID's. You can share the iTunes ID if you want. But the others should be different. My Wife and I share an iTunes ID so we can share the same purchases and downloads. But our iCloud, iMessage and Facetime ID's are different.

Original thread: https://forums.imore.com/threads/how-can-i-stop-text-messages-from-going-to-multiple-devices.344366/