The energy sector has pulled off a rare feat: It’s the only industry group in the S&P 500 Index to rise in the month of March.