The calculated distance (air line) between Castelvetrano and Messina is approximately 155 miles respectively 249 kilometers.
By car or train, the actual journey to Messina is certainly longer, as only the direct route (as the crow flies) between Castelvetrano and Messina has been calculated here.
Air line (approximately)
249 kilometers
134 nautical miles