Hi there! 玩 and 玩耍 sometimes have the same meaning which is play. But they indeed have differences. 玩耍 is more formal, we hardly say it, but write it in the article. For example, 孩子们在花园中玩耍. 玩 is more common. we use it in oral Chinese, such as 玩游戏,玩球。