The most frequent causes of running injuries arise from what is known as "training errors". These include poor running shoes, poor running surfaces or terrain, and rapid excessive increases in milage or speed. Any, or all of these, may have been a factor in your recent episode. If so, a short rest, ice, and careful return to activity should suffice.
You have not given a history of injury, either recent or remote, so I assume this is not a factor.