The photos are of the same fish? I was somewhat inclined previously in thinking the left is a male, so if this fish is the dominant, that would seem likely. As for the other fish that is being harassed, it could be male or female.
The male, if my thinking is correct, will consider the tank his space. This will never change; adding more males for example will not deter him, as he was first in possession.
Rams must select their own mate; males will not always accept any female, and vice versa. It sounds as if this male has not accepted the female, if the other fish is female. Make sure she has plenty of refuge. Though in my experience, this is not really adequate, if the male decides she is not wanted in his space, she will be hounded until dead. I had this happen in a 5-foot planted tank with a pair of Bolivian Rams.
Byron.