Well, if you are hitting the power button and it's not putting it to sleep, then it is just turning it off. You can change that by going into the power options.
1. type power and sleep settings in the search bar and select it.
2. click on additional power settings
3. click on "choose what the power buttons do"
4. choose what you want the power button to do.