NEW YORK — Shivering victims of Superstorm Sandy went to church Sunday to pray for deliverance as cold weather settling in across the New York metropolitan region — and another powerful storm forecast for the middle of the week — added to their misfortunes and deepened the gloom.
With overnight temperatures sinking into the 30s and hundreds of thousands of homes and businesses still without electricity, New York City officials handed out blankets and urged people to go to temporary warming shelters set up during the day at senior citizen centers.
At the same time, government leaders began to grapple with a daunting, longer-term problem: where to find housing for the tens of thousands of people whose homes could be uninhabitable for weeks or months because of a combination of storm damage and cold weather.
Mayor Michael R. Bloomberg said 30,000 to 40,000 New Yorkers may need to be relocated — a monumental task in a city where housing is scarce and fiercely expensive — though he said that number would probably drop to 20,000 within a couple of weeks as power is restored in more places.
In a heavily flooded Staten Island neighborhood, Sara Zavala spent the night under two blankets and layers of clothing because the power was out. She had a propane heater but turned it on for only a couple of hours in the morning. She did not want to sleep with it running at night.
"When I woke up, I was like, 'It's freezing.' And I thought, 'This can't go on too much longer,'" said Ms. Zavala, a nursing home admissions coordinator.
On a basketball court flanked by powerless apartment buildings in the Far Rockaway section of Queens, volunteers for the city handed out bagels, diapers, water, blankets and other necessities. Genice Josey filled a garbage bag until it was bulging.
"Nights are the worst because you feel like you're outside when you're inside," said Ms. Josey, who sleeps under three blankets and wears long johns under her pajamas. "You shiver yourself to sleep." She added: "It's like we're going back to barbaric times where we had to go find food and clothing and shelter."
Six days after Sandy slammed into the New Jersey coastline in an assault that killed more than 100 people in 10 states, gasoline shortages persisted across the region, though odd-even rationing got under way in northern New Jersey in an echo of the gas crises of the 1970s.
More than 900,000 homes and businesses were still without power in New Jersey, and nearly 700,000 in New York City, its northern suburbs and Long Island.
With more subways running and most city schools reopening Monday, large swaths of the city were getting back to something resembling normal. But the coming week could bring new challenges, namely an Election Day without power in hundreds of polling places, and a nor'easter expected hit the area by Wednesday, with the potential for 55 mph gusts and more beach erosion, flooding and rain.
Churchgoers packed the pews Sunday in parkas, scarves and boots and looked for solace in their faith.
At the chilly Church of St. Rose in Belmar, N.J., its streets still slippery with foul-smelling mud, Roman Catholic Bishop David O'Connell assured parishioners: "There's more good, and there's more joy, and there's more happiness in life than there is the opposite. And it will be back."
After the abrupt cancellation of Sunday's New York City Marathon, some of those who had been planning to run the 26.2-mile race through the city streets instead volunteered their time, handing out toothbrushes, batteries, sweatshirts and others supplies on Staten Island.
Thousands of other athletes from around the world ran anyway inside Central Park, where a little more than four laps around it amounted to a marathon. "A lot of people just want to finish what they've started," said Lance Svendsen, organizer of a group called Run Anyway.