Check the bike fit! I had a bike that was too long for me and it caused major pain in my neck and shoulders.

If fit is good, regular stretching while riding helps as does building up those muscles (carefully).