Who should I ask to write for letters of recommendation?

For a PhD program, ask those who can address your academic and/or research abilities, especially in the research area you want to work in. At least one letter should address your research potential; others might address other aspects of your skills, such as leadership, writing, and other skills relevant in research.