Try switching the M/A switch on your lens to M and take a picture. If you can take a picture then it's the focus. Unless there's something wrong with the lens, the only time the camera can't focus is that there is not enough light or enough contrast ...