Well, usually the qn would be what is different between a compound and a molecule. but if you ask like this then, here goes.
An element is the simplest substance that can not be broken down into its components using physical processes. exp: Na, S, K
A molecule is a substance that make up of an element bonded together.
exp: O2, S2, F2(diatomic molecules)