If you are doing the same, or broadly similar, work as a worker of the opposite sex in the same establishment, or at another establishment where common terms and conditions apply, you are entitled to equal pay. There has to be someone of the opposite sex in the same employment (a 'comparator'), with whom you can compare your work.
Differences such as payment for extra responsibilities are permitted, providing the differences are not related to the sex of the worker.
The law applies to all workers, regardless of age.