It sounds like "wry neck" which usually is an ear infection. You can read more about it here:
<http://www.rmca.org/Articles/qna2_98.htm>
in the section called "head tilt." This should be treated aggressively with an antibiotic such as Baytril or chloremphenicol for a minimum of two weeks. Here's the RMCA drug chart, which shows the dosage based on the rat's weight:
<http://www.rmca.org/Articles/dchart.htm>.

You will need to take him to a vet for this-- your rat's age and weight will be a consideration for the type of antibiotics that he can have.

Here's also a list of vets that have done good work with pet rats in case you don't have a good vet already:
<http://www.rmca.org/Resources/vets.htm>
<http://www.ratfanclub.org/vetref.html>.