Here are some candidates who won popular vote, but not electoral college, which means that they couldn't become president in those elections:
1. Andrew Jackson lost to John Quincy Adams in 1824
2. Samuel Tilden lost to Rutherford B Hayes in 1876
3. Grover Cleveland lost to Benjamin Harrison in 1888
4. Al Gore lost to George W Bush in 2000