Medical students pay the exact same way as all other university students. They pay via student finance loans for the first four years.
The NHS pays for the fifth and final year, as Student Fianance (England) will not cover the cost.
Medical students have the same student loans of £60k+ as any other student doing a four year degree