Sometimes the neck gets stuck like this (jammed neck) when the hatching process takes longer than usual or when the chick was helped out of the shell.
Administering B complex and E + Selenium for a few days might help in case it is caused by a parental deficiency.
And this chick looks like it...