Study of Ultraslow Atomic Motions by Magnetic Resonance