I got muscle pains in my leg as I started working out 4 days ago. How can I treat the pains?

Many things. Anti-inflammatory medicine can be of benefit. Ice is often helpful, as is heat. Alternating between iceand heat can work too. Using mild compression stockings during and after exercise, if you calves hurt, can be beneficial as well.