If you are new to using Unreal 5 navigating the 3D workspace can sometimes be a bit daunting for those unfamiliar with 3D applications.
Holding Right Mouse button will pan and rotate the editor camera
Holding Left Mouse button and moving the mouse will move the camera
Holding Right Mouse button and using the Keyboard keys W,A,S,D will move the camera and allow rotation at same time
Scroll Wheel will also move camera forwards and backwards
Right Mouse Button and Q / E: Raise and Lower Camera
If you have a PC game controller the control sticks will act in similar manner with one for orientation and other for position.
Left mouse double clicking on an object in the Outliner panel will zoom the camera and position to that selected asset, this is a good way to re-centre if you get lost in the editor / scene. This can also be done by pressing F with object selected.