What are two ways nitrogen from the air is changed into usable nitrogen?

lightning & bacterial action (nitrogen fixers).