An MRI scan uses a magnetic field and radio waves to create detailed images of the liver, which can be used to help identify abnormalities. It is useful for diagnosing both malignant and non-malignant lesions on the liver.