The lens is jammed, which means a gear is stripped or damaged, or jammed in the lens assembly, and the electronic "brain" is turning it off, since it's not in the right position (retracted). This can be caused by the camera getting bumped while the lens was out, dust, dirt, or sand can get in the lens through the front of the camera and jam it, or the batteries could be weak. After you make sure your batteries are good, and it still isn't working, go to this web page and try their suggestions. They report about 1/2 of the cameras with a lens problem can be fixed trying their suggestions. If that doesn't work, don't have it serviced- you can buy a better new camera than what you would pay a service shop.
The page says "lens error" messages, but it also applies to your problem.