Formal:
* Comment va votre cou? (Most literal translation)
* Avez-vous des douleurs au cou? (Do you have neck pain?)
Informal:
* Comment va ton cou? (Informal, you'd use this with someone you know well)
* T'as mal au cou? (Slang, very informal)
To inquire about the general health of the neck:
* Comment se porte votre cou? (How is your neck doing?)
It's important to consider the context and your relationship with the person you're speaking to when choosing the best phrase.