You must first reset the Time Capsule back to default settings, so the setup wizard can suggest the correct setup for you.
With the Time Capsule powered on for a few minutes, hold in the reset button on the back of the Time Capsule for 8-10 seconds and release. Allow a full minute for the Time Capsule to restart to a slow blinking amber light.
Verify that the Ethernet cable connects from one of the LAN <--> ports on your wireless router to the WAN "O" port on the Time Capsule.
On your Mac, click the WiFi icon at the top of the screen and look for a listing of New AirPort Base Station. Just below that, click on Time Capsule. The illustration below shows an AirPort Extreme, but you will see Time Capsule on your screen.

If you are using an iPhone or iPad, tap Settings on the home screen, then tap WiFi. Look for a listing of Setup a New Base Station and just below that tap on Time Capsule.
Whichever way to choose, that will start the setup wizard. It will run a minute, then suggest a setup that will look like this, except that you will see a picture of the Time Capsule on your screen.

Network Name......Type is a short, simple name for the wireless network that the Time Capsule will create. IF.....you have decided to locate that Time Capsule a few rooms away from the main router....and....you want the Time Capsule to extend the network......then enter the exact same name that the router is using for the wireless network. If the Time Capsule will be close to the router, then type in a different wireless network name. You can use the same name as you used before on the Time Capsule if you wish
Base Station Name.....You can call the Time Capsule the same device name that it had before, if you wish
Password......Type in the password that will be used for the wireless network and Base Station. If the Time Capsule is located a few rooms away from the router and you want the Time Capsule to extend the network as mentioned above, then you would use the same password that router is using. If the Time Capsule will be close to the router, and it will have a different wireless network name, then type is a password that you want to use.
Verify.......Verify the password again
Click Next.....and the wizard will set up everything for you automatically. When you see the message of Setup Complete, click Done.
Now you should be able to connect to the Time Capsule using the wireless network that you selected and password.
The backups on the Time Capsule will not be affected by this, but you will need to reset Time Machine to select the Time Capsule as the target disk for backups, to get Time Machine going again. Backups will resume where you left off before.