I find with the increased impact on the body I pickup far more little niggles like this with running compared to cycling.
Are you new to running? Are your shoes suitable? Are you carrying too much weight? Have you recently increased your pace/ distance too much? are you giving yourself enough time to rest?
failing all the obvious stuff above (and stretching as mentioned by one other) I’d see a physio. A mate of mine went recently and had a raft of muscle imbalances pointed out to her, some of which she says she can actually see but never noticed.
Good luck sorting the problem