NEW YORK, May 11 (Reuters) - The S&P 500 closed barely higher, eking out a nominal gain on Monday as investors weighed new spikes in coronavirus infections with expectations that an economy crippled by mandated shutdowns will soon be re-opened for business.

Technology and healthcare shares provided the biggest lift to all three major U.S. stock indexes and led the tech-heavy Nasdaq to its sixth consecutive advance.

The blue-chip Dow lost ground.

The S&P 500 and Dow Jones Industrial Average remain within 20% of all-time highs reached in February, and the tech-heavy Nasdaq is within 10% of its closing record.

“Investors have been buying equities given the realistic expectation that massive fiscal and monetary stimulus will reignite economic and profit growth,” said David Carter, chief investment officer at Lenox Wealth Advisors in New York. “There is still a fair amount of optimism in the markets, but this could be quelled if coronavirus cases re-emerge.”

But a surge of new coronavirus infections in Germany and South Korea suggested early efforts to lift restrictions could be premature, even as businesses around the world, shuttered by social distancing restrictions, begin re-opening their doors.

“There’s really no playbook for a health crisis like the world is now experiencing,” Carter added. “With no playbook, there’s much less certainty and markets are more likely to vacillate.”

The Dow Jones Industrial Average fell 109.33 points, or 0.45%, to 24,221.99, the S&P 500 gained 0.39 points, or 0.01%, to 2,930.19 and the Nasdaq Composite added 71.02 points, or 0.78%, to 9,192.34.

Of the 11 major sectors in the S&P 500, four closed in the black, with healthcare enjoying the largest percentage gain.

First-quarter earnings season is nearing the final stretch, with 440 of the companies in the S&P 500 having reported. Of those, 67.5% have beaten Wall Street estimates, according to Refinitiv data.

In aggregate, S&P 500 earnings are seen to have dropped by 12.1% in the first quarter, compared with a year ago.