Rhytm or sync problems

Hi, i use cubase elements 8, i recorded some tracks (midi) with asio. Then i switched it to ex-sound card (rolandua-22) to record guitar. When i push the record button, the rhytm is very slow and sound is distorted. İ read about synch in transport menu but i couldn’t manage. Firstly i realize that i don’t know how to set up tempo adjustment. ,Can you show basically?