Folate and B vitamin pills failed to help keep elderly people’s brains and memories sharp in the longest study yet to test this approach.