Get better with your feet first. Before schemes and rotations, every player has to own the fundamentals: stance, slides, closeouts and help positioning.
A good stance is low and balanced with the weight on the balls of the feet. Slide without crossing your feet or bringing them together, and keep your head level. The player who pops up out of his stance is the one who gets beaten off the first step.
Then work on recovery, which is rarely drilled enough for how often it matters. When the ball handler gets the first step, do not keep sliding. Open your hips, turn and run to cut off the angle. The goal is to get in front of or level with him before the paint, not to trail him and contest from behind. If you cannot get there in time, sprint, get a hand up and contest without fouling.
Closeouts are the third piece. Run at the shooter, chop your feet as you arrive, get a hand high and be ready to slide if he drives.
The common mistake is drilling defense only in scrimmage. Do a few minutes of footwork every day, zig-zags and closeouts, and the habits show up in games. Younger players should focus on stance and slide. Older players add help positioning and rotations.
More Defense questions
Free playbook
Get the free flex offense playbook
Every flex cut, starting set, counter, special and drill, with all 30 diagrams, in one printable PDF.