Corn cobs need to be boiled for exactly two minutes. They are not supposed to go soft - they are only supposed to get hot.
Cook for more than 2 minutes and you start to make them tough and the flavour disappears.
This was taught me by an american woman - who grew them.