Hi there. This may depend on the lock screen and messaging app you are using. If you set up a screenlock PIN, pattern, or password, set it up again and check if you will be asked if you want to see notifications on the lockscreen.