In order to charge the battery, you need a charger. Most chargers have a slot designed to hold the detachable battery while it charges.
Some cordless drill drivers come with a charger included. However, if you have to purchase one, make sure you choose the correct charger for your battery.
It’s very important that you purchase a charger which is designed to charge your particular brand and voltage of battery.
This information should be printed on the charger and the drill driver’s battery.