You’ve likely entered into the “Free Cam” mode. This is achieved by hitting space on the keyboard. Simply tap space again to exit freecam mode, this will likely fix your issue.