All three major stock indexes closed not far from even on Monday, after some early gains built on last week’s momentum. Oil and natural-gas prices rose, pushing energy stocks higher. AT&T stock jumped after activist hedge fund Elliott Management disclosed a large stake in the company.