Look at the thermal resistance, it gives you a clue of what rice in temperature you could expect based on dissipated effect. For the TO247 case you have
RθJA (Junction to ambient) set to max 40 °C/W. It means that for each W dissipated you could expect a 40°C rise in temperature in comparison to ambient temperature without heatsink. But, the other package TO220 gives you a 62°C rise in temperature. Do the math.
Now, we know nothing about your motor, thus we know nothing about your application, if its a small DC motor like those found in childrens RC toys you would do fine without a heatsink,.
Then again... What is 1W? Remember that this is dissipated effect in the mosfet and not in your DC motor so at 2m ohm internal ON resistance it means a current of >20A to reach 1W dissipated effect. Thats not the kind of motor you have, right?