if you are using a missle weapon you might be outside of the minimum range (think it's 30 feet for bows 40 feet for xbows, 20 feet for slings) if your using a sword it could be that the monsters is doing an action that doesn't have an enemy target and as such you arn't flanking them