The best way to cook corn kernels is by boiling them in salted water for 3-5 minutes until tender, or grilling them over high heat for 10-15 minutes until slightly charred. Both methods retain the natural sweetness and crunchiness of the corn.