MRI (magnetic resonance imaging) is a large magnet and works without X-rays.
CT (computed tomography) is an X-ray based machine.
Both devices can produce images as "slices" of the body in all spatial planes and are also generally known as cross-sectional imaging.