Check that restrictions are not enabled: Settigns → General → Restrictions.
Otherwise, 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