if your helmet has a visor, take it off. Make sure your glasses rims aren't blocking your vision and making you have to tip your head back. You should be able to look at the road just below your eyebrows.
If you have done all that and your neck still hurts, do wrestler's bridges to strenghen your neck.