Most of the time, your first visit to the gynecologist is a familiarisation visit. The doctor will strike a conversation with you to find out what you are ailing from.
In some cases, the doctor will perform tests to determine your reproductive health. After that, the doctor might prescribe medicine in case the disease is easily treatable.
The doctor will also advise you on protective measures for most diseases and probably schedule your other visits.