in the US after med school you do an additional 3-7 years of post-grad training called residency depending on your specialty of choice.
Generalist/medicine is typically 3 years. Surgery fields are longer. Pay is just slightly better than minimum wage.
After residency you can do fellowships to sub-specialize further in your field (typically another 1-2 years). This is where someone would become a cardiologist, GI specialist, etc.