A battery is actually a association of several cells. So both can be called a source of potential difference.
A cell or battery generates a potential difference by creating a charge separation through chemical reactions at its terminals, which results in an electric field. This potential difference drives the flow of electric current when connected to a circuit. The voltage is a measure of the energy provided per unit charge within that circuit.
;