Blown Head Gasket or Cracked Block

well it would do too things it would get REALLY cold then jump back up to hot the gauge went all of the place finally it started blowing smoke into the cabin. thats from the heater core i assume. but when i started it smoke came from back where the cat is but from the motor where the block itself is