What was the name of a movie with plot that modern naval ship transported back to World War 2?
You're likely thinking of the 2004 movie "Sky Captain and the World of Tomorrow".
While not a naval ship specifically, the movie features a futuristic airship called the "Sky Captain" that gets transported back to 1939 New York City during the early stages of World War II.