I've had this problem many time before. What I do is gently fiddle around with the lens, then you'll hear a click and your camera will work again.

This is the site I used to show me how to fix it. E18