You need to replace the dock. The phone thinks it is docked all the time hence the inability to change the volume as you'd normally change the volume on the dock itself.
open