It's important to crack your neck the right way because the wrong way can lead to new types of pain. When cracking your neck, do it gently from side to side, slowly stretching out the muscles.
At first, take it easy, and avoid any activities (such as sports or heavy lifting) that worsen your neck pain. You can also use ice for the first 24 to 48 hours to ease swelling and pain.