A judge in Farmville, Va., declared a mistrial in an attempted-murder case after the defense lawyer said he couldn’t continue his closing statement because he had lost his train of thought.

Judge Ernest P. Gates Sr. also suggested that attorney James E. Sheffield seek medical help.