How to turn off SMS and Whatspp notifications

I have switched off permission for SMS and Whatsapp messages to come through to my phone, but they still do. Can anyone help me to switch them off properly? I want to keep the watch connected to my phone for heart rate, etc.