You can attack an enemy faction's trade by simply selecting your fleet, changing to raiding stance, and right-clicking on their trade route. A proportion of their income from that route will be passed to your treasury whilst your fleet remains in place. An attack on a port, either by a fleet or by sabotage, will result in the disruption of trade and the cancellation of any trade agreement only if there are no other ports through which to re-route it.