"to go to bed" is used when a person needs to change the current place to another in order to sleep.
For example, a kid was watching TV late at night, so his mom came and said, "It's time to go to bed."
"to go to sleep" is used when a person in already in a place where one can fall asleep.
For example, He tucked his son in bed and said, "Go to sleep."