Voltage is the amount of "push" that a battery has. A 12 volt battery has more push than a 5 volt one. Amperage or Amps is the amount or rate of flow in an electrical circuit. A milliamp (mA) is one thousandth of an amp.
A milliamp-hour (mAh) is one thousandth of an amp flowing for 1 hour.
A 500 mAh battery could supply 1 mA for 500 hours or 500 mA for 1 hour. (This is theoretical)
If it is a 5 volt battery it would have 5 volts of "push" for the 500 hours or for the 1 hour.
If it is a 12 volt battery, it would have more push so it could run a bigger motor or run a motor faster than the 5 volt battery.
All batteries are made from one or more cells. The amount of voltage of the battery depends on the number of cells and the chemistry of the individual cell. Different types of cell chemistry produce different voltages. (1.1, 1.2, 1.5, 2.0, 3.6). Depending on haw the cells are connected you can get more voltage or more amp hours.