If it runs ok when its cold then suggests the mixture is too lean when it warms up. If it has had the head gasket done due to water and oil mixing, some of this may have damaged the oxygen sensor. If you can get a reading on a scanner to see what it is doing when you floor it, might help.