It is an unhappy thing when a lens quits working normally, or stops altogether, complete with some kind of error message on the camera body. The good news is that you can usually bring your lens back to life and it only takes a few seconds to a few minutes to do. Details are here.