While some races may allow you to wear earphones or bone conduction headphones, many prefer people not to, or they may even ban participants from wearing them. This is mainly for safety reasons. If you can't hear other runners around you or traffic, then the risk of collisions and injury is much greater. Also, the atmosphere at running events is great and it’s a shame to miss out on it.