1. Is your iPad fully stuffed up? Check up the free storage left.
2. Power hungry apps should have hardware related problems with your iPad as your's is an old one. Try restarting the device by pressing power+home.
3. Re-install iTunes to see if your iPad gets detected. Moreover as your iMac is a new one, try to get connected to a network before connecting your iPad to mac.