Your device must be signed into the same Apple ID that made the original purchases. Afterwards, enter the in-app settings and tap on the Restore Purchases button.