Cold water does not identify a failed heating element
Power, controls, fuel supply, flow, and water-system configuration can all affect hot-water delivery. Tank-style and tankless heaters also behave differently. Note whether the heater produces any hot water and whether every faucet is affected; avoid ordering parts based only on a cold-water symptom.