It was the SATA cable that was broken. My Mac did recognise the SSD but it could not boot over the ssd. I think thats because of the higher SSD speeds, maybe a broken cable doesnt allow such high speeds but works with lower ones, line an HDD has. I hope this will help other people with the same problem