Fungi are considered as the main decomposers of litter or wastes in various ecosystems. The growth of fungi is characterized with the presence of hyphae. Bacteria also decompose materials. They are the unicellular organisms which can break down only the surfaces of organic matters.
Put simply, there main role is to turn decaying cells into nutrient components for plants and the soil. Without Bacteria and Fungi dead organisms would decompose at a much slower rate.
Other biological molecules that contain the element of N would be nucleic acids such as DNA and or RNA. There are found in the nucleotides that constitute or make up these nucleic acids.