Unless you are legally separated, if your wife and dependent children live in Spain, then you are liable to pay in Spain. Whether you get caught if you don't pay is a different matter. People have been living here for years and not paid a penny.
Be aware that Hacienda are even checking electricity and gas bill to look for people that say they are non resident but have steady utility usage throughout the year. In a nutshell, the government needs the revenue.