A write head magnetises a region by generating a strong local magnetic field, and a read head detects the magnetisation of the regions.
The heads are kept from contacting the platter surface by the air that is extremely close to the platter; that air moves at or near the platter speed.