Rotate a 2D cross section to make a 3D object
Thibsert's answer is fine, but if you're using mesh already you can use the Spin tool from the Tool tab in Edit Mode. The number of degrees (Angle) needs to be set to 360 and you need to find the right axis and enter 1 there instead of the default 0