What could cause my vaginal discharge I've been having for several months and haven't had any intercourse in 4 months?

See your gyn. Most likely a vaginal or cervical infection, u also need a pap if u haven't had one and u may need an ultrasound to make sure the discharge is not coming from an endometrial abnormality.