You are view the lightning page from preview? if yes, the toast itsis not working beacusebecause the event is handled by one.appone.app
.
Quoting from documentation:
This event is handled by the one.app container. It’s supported in Lightning Experience, Salesforce1, and Lightning communities.
You can create your own toast component if you want to preview the page, or simply create a tab for the lightning page.
If you needCheck documentation for more info check this link of the doc
details: force:showToast
Greetings.