Hi and welcome to AndroidCentral.
What device do you have, and what version of Android is it running?
On my Moto X Pure Edition running 6.0, I am able to go to Settings, Sound & notification and select to show all notifications when the device is locked.