Medical school is required to be an Ob/Gyn.
You need to go to medical school. This is graduate school after your undergraduate studies. Your major as a undergraduate does not matter, as long as you meet the requirements for applying to medical school. However, most student study a biological science, because much of the requirements for medical school is the same to graduate as a biological science major.
Hope this helps.