This is where the details matter. Your body has an innate ability to know when it needs more food. You get hungry. If you eat a bunch of foods with a high glycemic response, it will be absorbed quickly, trigger an insulin response, which captures as much of the blood sugar as possible and stores it to fat. After this is complete, your stomach is empty and your body tells you you're hungry. If you count calories, then you realize you can't eat MORE, so you go hungry. This tends to end badly (i.e. Snickers Hangry commercials). However, if you eat low glycemic response foods, they tend to hang around your digestive tract longer, not trigger a large insulin response, and feed your body's caloric needs as the day goes on. Further, when eating typical low glycemic response foods, you'll typically lose interest in eating before you're stuffed. Overeating a bowl of pasta is fairly easy, where as overeating prime rib becomes more difficult (until you introduce the baked potato and BAM you're back in carb land overeating).
There is quite a bit of glossing over even finer details here. This assumes every single calorie is digested (doesn't pass through), that every calorie digested is consumed by cellular activity (not removed by your kidneys).
Just like any model, its not exact.
If you cut out breads, rice, potatoes, and anything with sugar in the top 5 ingredients, and eat when you're hungry (not because its 12pm!) and stop when you lose interest, you'll likely lose weight (assuming you had issues before). This obviously doesn't apply to people with broken control systems like diabetes.