A ball bearing works on the principle that rolling friction is less than sliding friction. It helps in reducing friction between two surfaces in contact and maintaining separation between the bearing races, thereby allowing minimal surface contact between two surfaces.