switch needs to have its interface Vlan x UP UP , vlan x must be in the same vlan as those PCs. and usually have vlan x in the database.
if the PC is on different subnet then switch interface vlan x is, then u need routing enabled somewhere and default gateway set on switch if it is layer 2 .
if switch is layer 3, then it should have routing enabled and check for routes to /from destination subnet