Amber force fields function by using a combination of bonded and non-bonded interactions to describe the potential energy of a system. Bonded interactions include bonds, angles, and dihedrals, while non-bonded interactions encompass van der Waals forces and electrostatic interactions. These parameters are derived from quantum mechanical calculations and experimental data, ensuring high accuracy in simulations.