If multiple apps are running on your device, it can stop the camera from functioning. Ensure that all the apps are closed. If you are still facing the issue, update the camera setting, as it might help to fix the camera.