A smartphone keeps you in contact with the rest of the world, but not all text messages are desirable. Here’s how to block text messages in iOS and Android.