Answering a few questions will help the forum help you try it figure it out.
What size is the snake?
What size is the tank?
Is he eating?
Have you done any cleaning lately? If you replaced substrate and cleaned hide it's all brand new to the snake and has to check it out before settling in.
Are you observing this behavoir only at night?
What are the hot/cold temps?
There are a few more questions I'm sure I can't remember right now.
Sent from my SAMSUNG-SM-G900A using Tapatalk