They can cramp up from overworking, as can be seen with exercise
. Ice initially for a couple of days followed by heat and gentle stretching and massage
along with antiinflammatories can be helpful. Do not exercise or stretch aggressively as this will only further injure the sore muscles. If pain persists see an orthopedist. Feel better!