There are tons of different ways to cook corn on the cob… here are my two favorites.
On the Grill
Peel back the husks from the corn & remove the silk. Butter the kernels and sprinkle with salt & pepper and any other seasoning of your choice. Fold the husks back over the corn and grill over low heat for about 15 minutes, turning occasionally.
In the Oven
Remove the husk and silk from the corn. Get a sheet of heavy-duty aluminum foil and add 2 tbsp of melted butter to the middle of the foil. Place corn on the foil, add salt, pepper and garlic and roll the corn so it spreads the spices. Fold in half to keep all of the butter in the foil and for it to cook evenly. Cook for 25 minutes at 425F.