The S&P 500 has a chance to deliver back-to-back annual gains of at least 20% for the first time in over two decades. If history is any guide, the index could have another strong year in 2025.