In theory (standard language), ss and ß mark differences in pronunciation. That's why some words are written with ß. In practice, the differences are pronounced differently in different regions, which is why some German speaking people don't know the difference.