Hi Payal0519,
We appreciate you reaching out to us.
We’d like to gather additional details that may help us be in a better position to assist you.
- Do you have a protective case that may interfere with the Ring/Silent switch?
- Do you have any accessory that is connected or paired with your device that may interfere with the Ring/Silent mode features
If you answer no to both questions, please check for a software update and make sure that you are running the latest version of iOS.
While it isn't inherently assured that an update will resolve the issue, updating to the latest software version for your device can help isolate potential software issues.
Kindly secure a backup and update.
- How to back up your iPhone, iPad, and iPod touch - Apple Support
- Update your iPhone or iPad - Apple Support
If the issue continues after the update, the next best step is to have your device inspected by a technician.
You can explore your service options here: Get Support
Take care!