See this tutorial for details on creating an order history page:
http://www.webassist.com/tutorials/Create-an-order-history-page
Order tracking is implemented through your shipping provider, when you ship the items, the shipping provider will give a tracking number, use that tracking number of the shipping providers site to track the package.