Ammonia smell

I had a miscarriage and ended up getting a d&c 3 months ago and I haven't had sex since and I'm super sore and crampy still. I haven't really had a period and there is this awful smell... Help