All of the information you're looking for is on the CIC web site.
To obtain a study permit, you need to be accepted by a school first and then apply for a study permit. To be approved, you'll need to show a bank balance of at least $25K to cover tuition and living expenses.
For a work permit, you first need to secure a full time job offer from an employer and that employer needs to obtain an approved LMIA.