U.S. stocks rallied on Wednesday, with the S&P 500 clearing 2014 losses and closing at a record, as data cast an upbeat light on manufacturing in the New York region and Bank of America reported earnings and revenue that topped Wall Street's expectations.

"We have strong economic momentum coming into the new year. Stocks are no longer cheap, but they are not overvalued," said Kate Warne, investment strategist at Edward Jones. "With the momentum we're seeing in the economy, even the interest-rate-sensitive sectors can absorb it," she added.