I assume you mean that the lens is extended and will not retract.
The most common cause is that the battery is low on power.
Recharge the battery and try again.
..
I have a Canon PowerShot SD900. The lens are open and will not close. I have tried to turn the camera off and back on but I get "lens error - turn camera off and back on." I have tried this but nothing changes.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic