Not sure what device you have there, but usually if you allow message notifications in lock screen and show content, you should be able to just tap "view" to access the message...
On Marshmallow and Nougat - press on the notification, keeping your finger on it, and pull down. This drops down the little "reply" box, IF the app supports that capability.