looks like you're toggling the ringer silent physical switch (the one above the volume increase button.
If this persists, it might be a hardwre problem:
Take your iPhone to an Apple store or other Apple authorized service location to have this issue diagnosed.
Or contact Apple support: https://support.apple.com/HT201232