With Whatsapp it's quite easy. Go to the app settings, notifications and check the pop up notifications. It can be done separately for individual or group chats.
For sms it'll depend on the app you're using. Try to find similar settings or check in the Play Store for different options