UPGMA is a distance method and therefore needs a distance matrix. UPGMA is “ultrametric”, meaning that all the terminal nodes (i.e. the sequences/taxa) are equally distance from the root.
An amazing step-by-step tutorial how to use UPGMA can be found HERE, so study it thoroughly because you may need to construct a tree during the IBO using this UPGMA method. Thanks to http://edwardslab.blogspot.com.au/
Then, a very handy tool to learn about evolution can be found HERE.