The cone on the blue gear fits into the cone-shaped area in the collar, and friction between the cone and the collar synchronize the collar and the gear. The outer portion of the collar then slides so that the dog teeth can engage the gear.
Every manufacturer implements transmissions and synchros in different ways, but this is the general idea.