You learn by doing, same as making your jumpshot wet or getting an exercise routine down pat. Get on some blogs, find some simple recipes, get in the habit of chopping onion and garlic for prep, cook rice and grains to get a feel for how long it takes and what level flame works best, cook a chicken breast in a pan, etc. All it takes is focus and repetition. Once you feel comfortable, move on to more complex recipes and develop a grasp of how to flavor your dishes. With blogs being how they are these days, you have endless resources to draw from. Within a month you'll find it fairly easy to chef up whatever you enjoy eating; eventually you'll prefer cooking your own food, it makes eating more enjoyable too, because you feel you've earned your meal.