It sounds like you might have shin splints. Basically all you can do for them is rest, ice them for twenty minutes twice a day and try not to run or participate in whatever exercise caused it. Here is some more info on shin splints.
Shin splints... Put some water in a small Dixie cup and freeze it... When it's frozen, roll the cup on your shins for about 20 minutes.. Stretch them by sitting with your legs out in front of you and write the alphabet with the tips of your toes, rotating your foot to complete the letter. And the last thing is to not run anymore in till there healed.
Sounds like shin splints. I played a lot of sports growing up & I use to get them a lot. I use to go to sleep at night with ice packs on my shins & I would leave them on all night, but you have to put a towel in between the ice packs & your shins. You should not put the ice packs directly on your skin. This worked every time. The pain was gone the next morning.
To prevent getting them make sure you wear a good pair of sneakers when running or working out.
My roommate in college was on the track team and told me that shin splints are actually caused by your calf muscles pulling from cramping. She would stretch her calf out (by leaning forward and keeping her heels on the ground) and would get relief.