|The question is similar to "How do you make a box, any kind of box?" Everything depends on the details.|
There is nothing fundamentally different about a server and a home computer. A cheap laptop running an OS like Windows 7 can provide basic server functionality. To meet the needs of a large organization you might require a server OS like Server 2012 and some very expensive hardware.
As with a box, everything depends on the details.