Pressing the Volume up and Volume down buttons changes the volume of whatever sound is playing right now. If no sound is playing, it adjusts the media volume. Pressing the buttons also displays the volume control.
Here's how to turn on or off different types of sound and adjust their volume:
Tip: To make your phone vibrate when there are incoming calls, turn on
Ring vibration in
Vibration & haptics settings.