Substances get into and out of cells in three ways. Diffusion is the spreading out of particles, giving a net movement from a higher concentration to a lower concentration. It needs no energy from the cell. Oxygen, carbon dioxide and urea move this way.
Osmosis is the diffusion of water only. Water moves from a dilute solution to a concentrated solution through a partially permeable membrane.
Active transport moves substances from a more dilute solution to a more concentrated solution, against the concentration gradient. This needs energy from respiration. Root hair cells take in mineral ions this way, and the gut absorbs sugar this way when its concentration in the gut is low.