If you tried dieting and working out and still couldn't lose any weight, you might have some medical condition.
If you think you have a normal diet and you are active and shouldn't be overweight, then I highly recommend consulting a doctor. If you were always overweight it could be genetic, but it could also be many other things, like thyroid problems, blood sugar imbalance, some kidney-, liver problems, etc etc.
I hope you won't start fasting. I personally agree with (short-term) fasting as cleansing procedure, but not as weight loss procedure. First of all, you can't fast forever. And because while fasting your metabolism slows down a lot, when you stop doing it, you will store more fat than you would normally do. Second, if you intend to do it for a longer period of time, it's very unhealthy and you could have serious problems, as your body requires vital nutrients that you deprive it from when you fast. And finally, after a while you will most likely feel weak and without energy, which will affect your daily life.
It's your prerogative at the end, but my advice is, go see a doctor. Even if you don't have a medical problem causing it, a doctor can send you to a dietitian and prescribe you weight loss pills if necessary.