Data will only work if you’re on a call using your default mobile number, unless you turn on ‘Mobile Data Switching’.
To do this, go to Settings > Mobile Data > Mobile Data Switching. This will automatically switch mobile numbers for mobile data when you're on a call.