Before you can transfer files you must open a connection to the ftp server on the remote host.
ftp> open hostname
You are then prompted for access authorisation. Enter your username and password for the remote host.