A sequencer is a tool, software, or hardware that allows you to record, edit, and playback MIDI data (Musical Instrument Digital Interface).  A sequencer can record and edit MIDI information, such as note pitches, velocities, and timing, and then play it back using a MIDI-enabled instrument or software synthesizer. You don't technically need to use a sequencer to make trap, but it is very common and used by most artists.