why does my sportrak cut out


i have just bought a 1990 non catalyst sportrak it was running fine ut it has developed a problem it starts fine but when the temp gets to normal it cuts out and wont restart until it has cooled down i ahve changed leads plugs and tried a different coil
i hope somebody can help me