Make a 3D tube with a Bézier curve?
To make a tube, set the Fill to full in Curve > Shape:



Then increase the bevel Depth and Resolution in Curve > Geometry:



If you want a more complex/custom shape, you can use a bevel object: