The installation of SQL Server requires .NET Framework 3.5.1.
Installing this framework on Windows 2012 (both standard and R2) is not easy, there is something wrong with the setup.
You can find how to solve this in the article How to install .NET Framework 3.5 on Windows Server 2012 and Windows Server 2012 R2.