The zoom function is dependent on the camera app you're using. With the stock app, the volume keys are the zoom keys by default, but pinching will work whatever you have the volume keys set to do. In another app it might be different. (In Open Camera, which is better than the stock app, there's a little zoom lever.)