If you rest it, your body should heal itself. If you rest it and it does not heal itself in a week or two, consider consulting a physician. (I usually use Arnica.)
it is very important to rest the muscle-don't use it. binding the muscle if possible will help it rest. ace bandages work well if applied correctly. but it depends on where the muscle is. appl ice...