They can receive their funding from donations or a normal economic activity, with the difference being that all their revenue goes back into the function of the organisation.
Some services provided by non-profit are education and medical care, especially for the poor. An exemple is the Doctors Without Borders organisation.