Crafting a stone sword requires a crafting box, a stick, and two cobblestone blocks. With the crafting box placed, right click on the crafting box. In the crafting box interface place the items in the order represented in the crafting grid on this page. The sword will appear in the results box.

Detailed explanation from official source

Pressing attack, the left mouse button while the sword is equipped will deal damage to both mobs and players. As a result the swords durability will be decreased by one. The sword will continue decreasing until broken and unusable. An anvil can repair the stone sword.

Related Posts:
See Crafting a Crafting Box
See Crafting a Stick
See Crafting a Stone Pickaxe