Not going to sleep when closing the lid

I have noticed that when i close my laptop, it doesn’t put it to sleep.
this is draining battery and i have tried to change the control panel and restarted.
using windows 11