If you have a controller connected check your
options>player 1 controls>gamepad options>camera axis
and switch the axis being used until you're able to control your camera.
Sometimes having an incorrect axis assigned can lead to your action/control being axis locked which causes it to continue doing said action (in this case camera rotation)