Hello and thank you for your question. I look forward to assisting you today. Your lens barrel may be misaligned? Place the camera on a hard surface lens up. Power the camera on and very gently try rocking the lens side to side while pushing it back into the camera body. Let me know how that goes.
You may need to cycle it several times for this to work. There may also be some debris inside the barrel that can be blown out with a can of compressed air.
Press and hold the shutter button while powering it on and off several times to see if that will free the lens. If that doesn't do it then the problem may be due to the control circuit of the lens and something you will not be able to resolve yourself.
Unfortunately it does happen. You may still be able to clear it by blowing it out but I wouldn't waste a lot of time or dollars trying to repair it.