There maybe three possible problems in this case, either;
1) Your network is on limited access 2) Your Message center number may be incorrect, crosscheck it from your service provider's website. 3) Your Sim Card may be damaged or you may have been blocked by various numbers.
Since you already swapped your sim card to another phone, I would say it sounds like a problem on your carrier's side. In this case, the best thing would be to contact your carrier or visit one of their shops and ask about this.