The difference between pork, ham and bacon is that the ham is usually cut from the hind leg of a pig or from other parts of the carcass.
Ham is pork that is meat that is cut from parts of the pig other than the legs, such as the back, loin, collar or the belly.
The difference between pork, ham and bacon is not all that much as it's all the same meat cut from the same animal which is a pig.
Ham and bacon are pork but it's just cut from different parts of the animal which gives it a different flavor.
For example ham and bacon usually taste different because it's a different cut of meat from the pig.
Pork, ham and bacon are the same meats but they are just cut out of the pig in different areas.
All pork, ham and bacon come from pigs.