Pain in the front of your lower leg (shin) can happen for a variety of reasons. Some of the most common reasons include ankle joint stiffness or anterior tibialis muscle weakness.
The largest muscle at the front of your shin is the anterior tibialis muscle. This muscle helps point your foot up to the sky.
The second most common reason for ship pain is ankle joint stiffness. Ankle stiffness can happen after an injury or because of tight calf muscles. The ankle joint being stiff will require the anterior tibialis muscle to pull harder in order to bring the foot up, you can think of it like driving with the brakes on, you'll have to press the pedal harder to try to move the car.
To fix these problems you can stretch, mobilize, and strengthen the ankle.
If you don't have something sturdy to attach a resistance band, you can loop it around your other foot as pictured above. You can start by pointing your foot up and then pulling your knee to your chest. You can do this laying on your back, in a plank, or standing up against a wall. Again, you'll perform 3 sets of 10 and repeat on each side.