Energy companies were falling as oil prices declined, while media companies and other consumer stocks rose.