how can a person study?

i am majoring computer engineering but i never really learnt how to study

luckily, I'm naturally gifted in academics so i made my way through high school without studying much (4.4 GPA). i never understood the concept of studying and when i try to study like the rest of my college mates i just cant?

opening a book or having fun is something i struggle with. my time is getting wasted while i do nothing but sleep and talk to myself.

i can read a book after some time of trying but not study. its an impossible task for me and i want to know if there is anything i can do to make myself better. My professor said that if someone cant study that automatically means they are dumb, it broke my heart a bit since he's my favourite.

how do you guys study? please help me with some tips or techniques