explain how you get a decompositin..?

Usually by an outside source of energy; for example, by heating or by electrolysis.

Decomposition occurs when a single substance provides more than one product.
KClO3 ==> KCl + O2 (not balanced)