Camera on my iphone won't work?

All of a sudden I went to take a picture with the camera and it turned all blurry & started making a buzzing noise, but the noise stopped once I exit the camera. It's only the camera on the back of my phone that I would use to take pictures far away.

Sounds like a defect, have you dropped your phone recently?

If not, Try turning the phone off or restarting it. Then try the camera again
Hope you have a warranty and good luck

Have it checked at the service center.