Miners hash the block headers. The block headers themselves contain the Merkle root of all the transactions in the block. If you change a single transaction, you change the Merkle root, and you change the hash of the header (which is your pow).