Short version
A man wakes up on a spaceship. He can't remember who he is, or why he's there. There are two crewmates beside him, but they're both dead. Slowly, his memory comes back: he was just a middle school science teacher. And back on Earth, something is wrong. A microbe called Astrophage is eating the Sun's energy.
The Sun is dimming, and within a few decades, humanity faces an ice age. This ship is humanity's last-ditch plan: fly to another star, about twelve light-years away, and find an answer. There are no superheroes on board. Just a teacher, a pile of experiments, and one problem after another.
This is Project Hail Mary, by Andy Weir, the author of The Martian, who started working as a programmer at a US national lab at fifteen. It was a finalist for the Hugo Award, and it won the Goodreads Choice Award for Best Science Fiction. It's more than a page-turner: hard science that's easy to follow, cooperation across differences, and an ordinary person's choices in a desperate situation.
As for what he finds out there in deep space, all I can tell you is this: he's not alone. Project Hail Mary, by Andy Weir. If you were Earth's last hope, what would you do?