There is a limited amount of energy in the universe since it cannot be destroyed or created only transferred. This being said, eventually the universe will have expanded to vastly that all of its energy will be spread too thin for any form of life to be possible.