Check the contacts on the lens and the body are clean and shiney and check the manual/auto focus switch on the body and if applicable on the lens is positively in the auto position
nigel, February 2010
edit
I can answer this question...
My Nikon D200 sometimes loses its ability to auto focus?