which one is correct?
There are holes in the pillowcases or on the pillowcases.
in the pillowcases.
Holes cannot be on something. By their nature they have to be in something. A hole is an empty space in an object, usually with an opening to the object's surface, or an opening which goes completely through an object: