You probably have the Tiara of Control on you. It won't let you attack anybody. If you see it on your head, you need to get to second town and buy then, use anticurse scroll.
If it's not the case, then you have probably upgraded your buttplug for Control. The effect is the same. Remove it.