There are circumstances where either commas or em-dashes would be OK. However, there are some circumstances where em-dashes would be OK — so would parerntheses — but commas wouldn't. For example:
My friend Alex — did you meet him at my party last week? — ran into the store.