Once you have reached the 90/180 day limit, you must return to your country of origin. If you wanted to extend your stay in Spain, you would still need to return home to apply for an appropriate visa at your country's Spanish embassy, so that you can come back to Spain and obtain a residence permit for a longer stay.