A snake can move on a smooth surface. However, just like most other animals, it does require friction to exist between the surface and its body to move efficiently. A human would have difficulty walking on ice!
Lizards can move over a longer distance than the snake as it absorbs lesser heat than snake.this is because lizards run using two of its four legs whereas snake uses its whole body to crawl on the hot sand.
When they slither, they move themselves by pushing the ground, kind of like walking. When they're on something really smooth, it's like walking on ice in flat bottomed shoes and the snake will mess up.