Thanks for writing to us.
Infection may be due to pelvic inflammatory disease
, it is a infection of a pelvic organ ascend to ovary also. It can be treated with antibiotics.
Fluid in ovary may be due to ovulation and less commonly due to tumour also.
You should consult a gynaecologist and get your proper examination done to rule out the cause of infection and treat it accordingly.