You should completely rest an inflamed muscle and apply ice. After the inflammation resolves, you can gradually start physical exercise.