What are the two different ways pitches can be produced on trumpets?

The only way pitches can be produced on a trumpet is through the vibrating lips of the player. That player can change the pitches by either changing their embouchure or by changing which valves are depressed.