Camera displays sideways

I’m creating a fps game with third person template, halfway through the development I faced a problem with the camera.
I have placed the camera to the character’s head, at first it was okay, but when I changed the position for the second time it started to display sideways. After that no matter how many times I change the position of the camera it keeps displaying sideways.