There are different types of hydraulic motors, such as hydraulic gear motors, piston motors and hydraulic vane motors. A hydraulic motor works by converting hydraulic energy into mechanical energy. It uses hydraulic pressure and flow to generate the required torque and rotation.