Line an 8 1/2-by-4 1/2-inch loaf pan with parchment paper; set aside.
In the bowl of an electric mixer fitted with the paddle attachment, beat butter until smooth. Add goat cheese, in batches, and beat until well combined and no lumps of butter remain. Season with salt and pepper; beat until well combined.
Divide goat cheese mixture into 3 equal portions. Using an offset spatula, carefully spread one portion of the goat cheese mixture over the bottom of the prepared terrine mold; top with pesto, spreading evenly to cover.
Spread a second portion of goat cheese mixture on top of the pesto and top with jam, spreading evenly to cover. Top with remaining portion of goat cheese mixture; cover with plastic wrap. Transfer to refrigerator and chill until firm. Slice crosswise and serve with crackers.