It doesn’t matter whether you lay the drywall vertically or horizontally. It depends on the dimensions of your room. For longer walls, the length works better because it creates fewer joints.
Vertically works well with tall walls and high ceilings.