What is the treatment for vaginitis?

I have an itchy, painful vagina that remains wet due to discharge with foul smell. No medications were effective. Why?