If you see the orange part of the switch, Silent mode is on and your phone won’t ring.
You can also set ringtones, vibrations, and other sounds in Settings > Sounds & Haptics or Settings > Sounds.
Alternatively, you can say “Hey Siri, turn on AssistiveTouch” and skip a few steps that go through menus.
Since the AssistiveTouch menu option overrides the physical button, your phone can get confused if you use both. If you’re in doubt, restart your phone. If you’re using at least iOS 14, you can set AssistiveTouch so you can tap the back of your phone to turn off Silent mode. Go to Settings > Accessibility > Touch > Back Tap to do so. Older iPhones (those not running iOS 14) can instead enable a tap, a double-tap, or a long press on the AssistiveTouch icon to enable and disable Silent mode. To set this up, go to Settings > General > Accessibility > AssistiveTouch and select either “Single-tap”, “Double-tap”, or “Long Press. " Finally, select Mute to indicate that the shortcut should silence your phone.