There are two ways. You can either turn off the sound completely, which means turning the phone on silent or vibrate using the volume buttons on the side. The other way is to go into Settings> Sound Settings> Message Tone> Alert Type> Vibration or Off