Note the frequency of wave depends on its source so it will not change with the medium.
The speed of the wave depend on the properties of the material and is the product of the wavelength and the frequency of the wave. Since, water and air have different properties so the speed of the wave will change.
Consider the relation between the wavelength and the frequency of the wave as:
Note that the speed will change with the wavelength of the sound.
Therefore, the frequency will be constant, while the speed and wavelength of the sound will change.