MRI technology uses the principles of nuclear magnetic resonance, where hydrogen nuclei in water molecules align with and are disturbed by magnetic fields. This creates signals that computers convert into detailed anatomical images. Electron spin resonance involves electron spins, not nuclei, and diamagnetism is a weak property unrelated to MRI.