jennlse,
There are some situations where these can be used interchangeably:
play a prank on someone
play a trick on someone
These are mostly the same in meaning.
However, "trick" has a much wider meaning than "prank". In fact, you can think of a "prank" as just one kind of "trick" - it's the kind where you're doing something to surprise or scare the person to be funny. As LeUyenHoc said, "tricking" someone can mean a wider range of things, including scamming someone out of their money, lying to someone, etc.