From my experience if I eat below my calories I to gain weight, my body goes into starvation mode and hangs onto anything it can. Try eating more as well as every 3-4 hours to keep your metabolism going :) good luck
If you're eating below a healthy calorie intake each day and still gaining weight, you need to see your doctor. There are many medical issues that cause a body to store fat rather than burn it.