What size tank is it in, and how many hides are in in?
Sometimes a snake will hide in the water thinking it is hiding. It may just need time to adjust to the new home.
The other thing that comes to mind is the tank may be to warm and it is trying to cool off.
Post a pic of the tank.