here are different ways to reset your iPhone, depending on what you want to achieve. If you want to erase all your data and settings and restore your device to its factory state, you can do a factory reset. If you want to restart your device when it’s not responding, you can do a force restart.
To do a factory reset, go to Settings > General > Reset > Erase All Content and Settings. This will delete everything on your device, so make sure you back up your data first. You may also need to enter your passcode or Apple ID password after the reset.
To do a force restart, quickly press and release the volume up button, then do the same with the volume down button. Then press and hold the power button until the Apple logo appears. This will not delete any data or settings, but it may help fix some issues or glitches.