Shénme: what ? What's that? What's up?
Zěnme yàng : How is sth or sb? Do you like it or not? Sometimes it can be used in a little rude way , when sb say you should not do sth ,you reply Zěnme yàng , that means "so what? You want to fight with me or what?"
Zěnme : What's up ? What happend? (when being asked , you are hoped to tell sth in detail)