there's no difference between '吗' and ‘么’ when they are both used at the end of the sentences as ONE word to express the interrogative mood. But there are also some set phrases related to '么' . For example, we can say '什么?'(not '什吗')and '怎么','这么','多么','什么','那么' , we can't use '吗' instead of '么' as the same.