Green’s Dictionary of Slang

jam n.5

1. (US black/drugs) cocaine.

[US]Milner & Milner Black Players 23: Sometimes one would be selling or merely ‘holding’ jam (cocaine) or weed.
[UK]J. Morton Lowspeak.
[US]ONDCP Street Terms 12: Jam — Cocaine.

2. (US drugs, also jammie) amphetamine.

[US]L. Stringer Grand Central Winter (1999) 144: Sometimes they come out with three-dollar jammies.
[US]ONDCP Street Terms 12: Jam — [...] amphetamine.

In compounds

jam house (n.)

(US black) a place where cocaine can be both purchased and then snorted in convivial surroundings.

[US]Milner & Milner Black Players 24: Jam houses where mainly men ‘snort’ cocaine and smoke marijuana.