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 not 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 for a few times. If the camera opened up 100% or retracted 100%, your camera should be back to normal. Make sure to clean the outside of the lense when fully open and keep it clean always. If this did not help, read 2.
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 inspect 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 the camera and your camera would be back to normal.