Start by loosening the quick release skewer, then lift the wheel out. Sometimes, if the brake lever is pressed while the wheel is out, the pads will close and it won't fit back in. To fix this put a screwdriver gently between the pads and open it again. You can also use a spacer to put in between the brake pads.
Make sure the wheel is fully in the dropouts when putting it back in.