Ball bearings work by utilizing rolling friction between the bearing's raceways and the balls to minimize friction between the shaft and bearing, thereby reducing friction caused by the wheels and improving transmission efficiency. This rolling action prevents damage to the shaft from friction and extends the life of the machine.