Hi Barry. Welcome to justanswer.
This seems to be the problem with the motor which is responsible for retracting the lens. Sometimes dues to dust then contacts are not made properly and the motor malfunctions. I would advise you to get it checked at a local repair center. If it is the dust or loose contacts then the repair would be around £25. If the problem is with the motor then it would be an expensive affair.
Please rate the chat positively by clicking the 5 stars present on the upper panel so that I can get credited for my services.