Sony cyber shot dsc-n2
There could be two things causing this problem.
1- some dirt somehow got on the outside of side of the lense. So the lense could not fully retract or open out. As a result you can take any picture. If the lense comes out even a little bit, try to pull it out NOT too hard a few times. If it does not retract, turn the camera off and push the lense in (up and down) NOT too hard foe a few times. If the camera opened up 100% or retracted 100%, your camera should be back to normal.
2- If you dropped the camera, some mechanical part of the lense is broken or dislocated or the cable may have come loose. In this case you need to take out the lense from the camera and inpect it for broken pieces or loose cable. clean the outside of the lense and push the lense in and out a few times. Put the lense back on and your camera would be back to normal.