That's not something others can tell you, it needs to be directly absorbed by the writer. AKA
see how other writers do it.
Go to a bookstore and the aisle of your chosen genre. Have a pad on which to write (or a tablet if you're not a Luddite).
Start at one end, top shelf, and open books to the first lines. Don't bother with prologues or reading the back cover blurbs. Cold read those first lines without knowing anything about the story and see if they hook you.
Note the title/author of those who hooked you solid, not just mild to medium interest, but the ones that have grabbed you so hard that you would much rather keep reading than pick up the next one.
Pick up the next one, rinse, repeat.
Elements to look for:
Character's personality -- any hint of that? The protag needs to be interesting and strong enough to drag you kicking and screaming through the next 300 pages, keeping you up all night so you curse them the next morning yet want
more.
Emotional hook -- goes with the character's personality/voice.
The Conflict -- or Problem. Doesn't have to be in your face, some may hint at it, others drop you into the volcano.
That said, try the opening page, right here and now, of Christopher Moore's
Island of the Sequined Love Nun.
Or this one.
I could spend all day telling you what to do and how I do it, but you'll figure it out faster --tailoring it to your own voice -- by reading 50-60 openings for yourself.
If they really hook you hard, hit the library and look for titles. Those will be writers who can teach you. Sure, read a book to enjoy it, but also study how that writer put their sentences together and structured that opening chapter.
Avoid books that have protags waking up (the exception is the
Love Nun title above), having a nightmare, or going through their boring morning shower/coffee ritual. We read books to escape from that crap.
And if you have not read any Ray Bradbury, DO SO. He's one of the greatest writers of the heart, period, and should be required reading for all writers, no matter what genre. Best. Mentor. Ever.
He got that way because he could not afford college, so he read the local library instead. The whole freaking library. He was there every day it was open, reading, reading, reading. His own writing routine was reading at least two hours a day.
While you're at it, do a Google image search for "Neil Gaiman's library". Be aware he's read all those and that's just one wall.