Investment in Spain has been (traditionally) far away from technology. Starting a company in Spain is not easy and people are generally looking for a stable job, they don't want to take the risk of starting a new company.
In my opinion, Spain doesn't have (in general) the culture of the entrepreneur even though some cities (like Barcelona) are trying to change it (22@, for example: http://www.22barcelona.com/index.php?lang=en).