bad tasting water

side by side fridge with water/ice dispencer. water/ice has very bad taste. I replaced filter but it did’nt help. water from sink is ok. whats the problem?