Languages differ in which sounds distinguish words
English treats the “n” and “ng” sounds as separate because they distinguish words. Spanish speakers may treat them as different ways to pronounce the same word. A sound difference’s role depends on the contrasts a language uses, not just on how the sounds are made.