Just like a car - the wheel is attached to the brake disc and both rotate on the axle - the caliper is fixed to the undercarriage leg and clamps the disc when you press the brake pedal.
The 3rd wheel, nose on the Merlin and tail on the Sea King, are castoring and allow the differential braking on the main wheels (and or the thrust of the tail rotor) to turn the aircraft.