See a Doc
You really need to be examined by a doctor to figure out what is causing the pain.
Some things that could cause pain in the shin are shin splints
which is an irritation of the covering of the bone called the periosteum. Tendon or muscle strains are also a possibility. Need to also look at possible problems with circulation. Sometimes the pain is far away from the source. A doc should figure out.