The leg may be sprained, or there could be an injury to the foot.
You need to take a close look. If there is no bump, no extra heat in the foot or leg, I would suspect a sprain.
An Epsom salt compress (clean rag soaked in a solution of 2 tablespoons Epsom Salt and half a cup of warm water)...