"Sumimasen" is a little more formal than "Gomennasai." When you apologize to the higher or the senior, "Sumimasen" is used in general. Among the family members or close friends, it is common to use "Gomennasai." "Gomen ne" or "Gomen" can be used in a more casual case.