How to connect both sata and pata harddisk to a motherboard

Yes you can. They both have different connectors on the motherboard. For the PATA drives you can have them connected to the standard IDE cables. For SATA you can connect them to the SATA ports which are visibly smaller than the PATA ports. Look up your motherboard manual.