Brokers and retail trading apps execute trades and hold accounts for investors, earning commissions, interest, and payment for order flow.