You should go to Settings App > Messages > Notifications > Lock Screen Appearance > Show Previews > and check if the show previews is selected to the "When Unlocked"
Topic:
App & System Services
SubTopic:
Notifications
Tags: