Don't worry, @RashikaGupta Here are the few simple steps to reset your iPhone device. But make sure to take backup, because reset will erase everything into the device.
To factory reset your iPhone, follow the steps below:-
Go to Settings
Then > General
Click Transfer or Reset iPhone
Erase All Content and Settings
Follow the on-screen Prompts
Confirming with your passcode or with Apple ID
Done, this is the easy way to reset iPhone devices.