Control Panel -> Power Options -> Choose what closing the lid does -> Set the sleep button and close lid to Sleep
Control Panel -> Power Options -> Change Plan Settings -> Sleep -> Hibernate after -> Set to NEVER for on Battery and Plugged in (skip this part if it doesn’t exist)