The ticket is the commercial part of the flight (you buy a ticket and intend to go on a fixed flight). The boarding pass is the document you get right with your checkin at the airport (or online), and allows you to embark the plane. You must show the boarding pass at the gate when boarding.