You can't ban another player yourself. Only a Jagex administrator has the ability to ban accounts on RuneScape.
What you can do, though, is report bad behavior. If someone scams or harasses you, use the red report button to flag them, and the moderators will review it and take action if it's warranted.