It could be a poor bike fit. Also try changing positions on the bike frequently, especially on a road bike. There was an article in last month's bicycling magazine about neck pain. It recommended holding light weights and shrugging your shoulders to build strength.